pub struct FidlServiceMember<F, SR, Output>where
F: FnMut(SR) -> Output,
SR: ServiceRequest,{ /* private fields */ }
Expand description
A wrapper for functions from ServiceRequest
to Output
which implements
Service
.
This type throws away channels that cannot be converted to the appropriate
ServiceRequest
type.
Implementations§
Source§impl<F, SR, Output> FidlServiceMember<F, SR, Output>where
F: FnMut(SR) -> Output,
SR: ServiceRequest,
impl<F, SR, Output> FidlServiceMember<F, SR, Output>where
F: FnMut(SR) -> Output,
SR: ServiceRequest,
Trait Implementations§
Source§impl<F, SR, Output> Service for FidlServiceMember<F, SR, Output>where
F: FnMut(SR) -> Output,
SR: ServiceRequest,
impl<F, SR, Output> Service for FidlServiceMember<F, SR, Output>where
F: FnMut(SR) -> Output,
SR: ServiceRequest,
Auto Trait Implementations§
impl<F, SR, Output> Freeze for FidlServiceMember<F, SR, Output>where
F: Freeze,
impl<F, SR, Output> RefUnwindSafe for FidlServiceMember<F, SR, Output>
impl<F, SR, Output> Send for FidlServiceMember<F, SR, Output>
impl<F, SR, Output> Sync for FidlServiceMember<F, SR, Output>
impl<F, SR, Output> Unpin for FidlServiceMember<F, SR, Output>
impl<F, SR, Output> UnwindSafe for FidlServiceMember<F, SR, Output>
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