Struct ServiceHandlerAdapter
pub struct ServiceHandlerAdapter<S, H> { /* private fields */ }
Expand description
An adapter for a FIDL service handler.
Implementations§
§impl<S, H> ServiceHandlerAdapter<S, H>
impl<S, H> ServiceHandlerAdapter<S, H>
pub fn from_untyped(handler: H) -> ServiceHandlerAdapter<S, H>
pub fn from_untyped(handler: H) -> ServiceHandlerAdapter<S, H>
Creates a new service handler from a supported handler.
Trait Implementations§
§impl<S, H> Clone for ServiceHandlerAdapter<S, H>where
H: Clone,
impl<S, H> Clone for ServiceHandlerAdapter<S, H>where
H: Clone,
§fn clone(&self) -> ServiceHandlerAdapter<S, H>
fn clone(&self) -> ServiceHandlerAdapter<S, H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§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>,
§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