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