pub struct ServiceHandlerAdapter<S, H> { /* private fields */ }Expand description
An adapter for a FIDL service handler.
Implementations§
Source§impl<S, H> ServiceHandlerAdapter<S, H>
 
impl<S, H> ServiceHandlerAdapter<S, H>
Sourcepub fn from_untyped(handler: H) -> Self
 
pub fn from_untyped(handler: H) -> Self
Creates a new service handler from a supported handler.
Trait Implementations§
Source§impl<S, H: Clone> Clone for ServiceHandlerAdapter<S, H>
 
impl<S, H: Clone> Clone for ServiceHandlerAdapter<S, H>
Source§impl<S, H, T> ServiceHandler<T> for ServiceHandlerAdapter<S, H>where
    S: DispatchServiceHandler<H, T>,
 
impl<S, H, T> ServiceHandler<T> for ServiceHandlerAdapter<S, H>where
    S: DispatchServiceHandler<H, T>,
Source§fn on_connection(&self, member: &str, server_end: T)
 
fn on_connection(&self, member: &str, server_end: T)
Handles a received connection request. Read more
impl<S, H> Send for ServiceHandlerAdapter<S, H>where
    H: Send,
impl<S, H> Sync for ServiceHandlerAdapter<S, H>where
    H: Sync,
Auto Trait Implementations§
impl<S, H> Freeze for ServiceHandlerAdapter<S, H>where
    H: Freeze,
impl<S, H> RefUnwindSafe for ServiceHandlerAdapter<S, H>where
    H: RefUnwindSafe,
    S: RefUnwindSafe,
impl<S, H> Unpin for ServiceHandlerAdapter<S, H>
impl<S, H> UnwindSafe for ServiceHandlerAdapter<S, H>where
    H: UnwindSafe,
    S: UnwindSafe,
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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> InstanceFromServiceTransport<T> for T
 
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
 
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type 
T to Self