pub struct ErrorLoggingRouter<R: ErrorReporter> { /* private fields */ }Implementations§
Source§impl<R: ErrorReporter> ErrorLoggingRouter<R>
impl<R: ErrorReporter> ErrorLoggingRouter<R>
pub fn new( inner_router: Capability, route_request: impl Into<RouteRequestErrorInfo>, error_reporter: R, error_location: WeakInstanceToken, ) -> Capability
Trait Implementations§
Source§impl<T: CapabilityBound, R: ErrorReporter> Routable<T> for ErrorLoggingRouter<R>
impl<T: CapabilityBound, R: ErrorReporter> Routable<T> for ErrorLoggingRouter<R>
fn route<'life0, 'async_trait>(
&'life0 self,
request: RouteRequest,
target: WeakInstanceToken,
) -> Pin<Box<dyn Future<Output = Result<Option<T>, RouterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn route_debug<'life0, 'async_trait>(
&'life0 self,
request: RouteRequest,
target: 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: 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<R> Freeze for ErrorLoggingRouter<R>where
R: Freeze,
impl<R> !RefUnwindSafe for ErrorLoggingRouter<R>
impl<R> Send for ErrorLoggingRouter<R>
impl<R> Sync for ErrorLoggingRouter<R>
impl<R> Unpin for ErrorLoggingRouter<R>where
R: Unpin,
impl<R> UnsafeUnpin for ErrorLoggingRouter<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for ErrorLoggingRouter<R>
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 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.