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: Arc<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>
fn route<'life0, 'async_trait>(
&'life0 self,
request: RouteRequest,
target_token: Arc<WeakInstanceToken>,
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<T>>, RouterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn route_debug<'life0, 'async_trait>(
&'life0 self,
request: RouteRequest,
target_token: Arc<WeakInstanceToken>,
) -> Pin<Box<dyn Future<Output = Result<CapabilitySource, RouterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn route_debug<'life0, 'async_trait>(
&'life0 self,
request: RouteRequest,
target_token: Arc<WeakInstanceToken>,
) -> Pin<Box<dyn Future<Output = Result<CapabilitySource, RouterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Performs the same operation as
route, but returns a
fidl_fuchsia_internal::CapabilitySource persisted into bytes.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> UnsafeUnpin for PolicyCheckRouter<C, T>
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<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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 more