pub struct Responder<M> { /* private fields */ }
Expand description
A strongly typed Responder
.
Implementations§
Source§impl<M> Responder<M>
impl<M> Responder<M>
Sourcepub fn from_untyped(responder: Responder) -> Self
pub fn from_untyped(responder: Responder) -> Self
Creates a new responder.
Sourcepub fn respond<'s, T, P, R>(
self,
server: &'s ServerSender<T, P>,
response: &mut R,
) -> Result<T::SendFuture<'s>, EncodeError>
pub fn respond<'s, T, P, R>( self, server: &'s ServerSender<T, P>, response: &mut R, ) -> Result<T::SendFuture<'s>, EncodeError>
Responds to the client.
Auto Trait Implementations§
impl<M> Freeze for Responder<M>
impl<M> RefUnwindSafe for Responder<M>where
M: RefUnwindSafe,
impl<M> Send for Responder<M>where
M: Send,
impl<M> Sync for Responder<M>where
M: Sync,
impl<M> Unpin for Responder<M>where
M: Unpin,
impl<M> UnwindSafe for Responder<M>where
M: 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