pub struct PolicyCheckRouter<C: ComponentInstanceInterface + 'static, T: CapabilityBound> { /* private fields */ }
Implementations§
Source§impl<C: ComponentInstanceInterface + 'static, T: CapabilityBound> PolicyCheckRouter<C, T>
impl<C: ComponentInstanceInterface + 'static, T: CapabilityBound> PolicyCheckRouter<C, T>
pub fn new( capability_source: CapabilitySource, policy_checker: GlobalPolicyChecker, router: Router<T>, ) -> Self
Trait Implementations§
Source§impl<C: ComponentInstanceInterface + 'static, T: CapabilityBound> Routable<T> for PolicyCheckRouter<C, T>
impl<C: ComponentInstanceInterface + 'static, T: CapabilityBound> Routable<T> for PolicyCheckRouter<C, T>
Auto Trait Implementations§
impl<C, T> Freeze for PolicyCheckRouter<C, T>
impl<C, T> !RefUnwindSafe for PolicyCheckRouter<C, T>
impl<C, T> Send for PolicyCheckRouter<C, T>
impl<C, T> Sync for PolicyCheckRouter<C, T>
impl<C, T> Unpin for PolicyCheckRouter<C, T>where
C: Unpin,
impl<C, T> !UnwindSafe for PolicyCheckRouter<C, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<R, T> LazyGet<T> for R
impl<R, T> LazyGet<T> for R
Source§fn lazy_get<P>(self, path: P, not_found_error: RoutingError) -> Router<T>where
P: IterablePath + Debug + 'static,
fn lazy_get<P>(self, path: P, not_found_error: RoutingError) -> Router<T>where
P: IterablePath + Debug + 'static,
Returns a router that requests a dictionary from the specified
path
relative to
the base routable or fails the request with not_found_error
if the member is not
found.