pub struct ServerHandlerToLocalAdapter<H>(/* private fields */);Expand description
An adapter for a ServerHandler which implements LocalServerHandler.
Trait Implementations§
Source§impl<T, H> LocalServerHandler<T> for ServerHandlerToLocalAdapter<H>where
T: Transport,
H: ServerHandler<T>,
impl<T, H> LocalServerHandler<T> for ServerHandlerToLocalAdapter<H>where
T: Transport,
H: ServerHandler<T>,
Source§fn on_one_way(
&mut self,
ordinal: u64,
flexibility: Flexibility,
body: Body<T>,
) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>>
fn on_one_way( &mut self, ordinal: u64, flexibility: Flexibility, body: Body<T>, ) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>>
Handles a received one-way server message. Read more
Source§fn on_two_way(
&mut self,
ordinal: u64,
flexibility: Flexibility,
body: Body<T>,
responder: Responder<T>,
) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>>
fn on_two_way( &mut self, ordinal: u64, flexibility: Flexibility, body: Body<T>, responder: Responder<T>, ) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>>
Handles a received two-way server message. Read more
Auto Trait Implementations§
impl<H> Freeze for ServerHandlerToLocalAdapter<H>where
H: Freeze,
impl<H> RefUnwindSafe for ServerHandlerToLocalAdapter<H>where
H: RefUnwindSafe,
impl<H> Send for ServerHandlerToLocalAdapter<H>where
H: Send,
impl<H> Sync for ServerHandlerToLocalAdapter<H>where
H: Sync,
impl<H> Unpin for ServerHandlerToLocalAdapter<H>where
H: Unpin,
impl<H> UnwindSafe for ServerHandlerToLocalAdapter<H>where
H: 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