pub struct Responder<T: Transport> { /* private fields */ }Expand description
A responder for a two-way message.
Implementations§
Source§impl<T: Transport> Responder<T>
impl<T: Transport> Responder<T>
Sourcepub fn respond<W>(
self,
ordinal: u64,
flexibility: Flexibility,
response: impl Encode<W, T::SendBuffer>,
) -> Result<RespondFuture<T>, EncodeError>
pub fn respond<W>( self, ordinal: u64, flexibility: Flexibility, response: impl Encode<W, T::SendBuffer>, ) -> Result<RespondFuture<T>, EncodeError>
Send a response to a two-way message.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Responder<T>
impl<T> !RefUnwindSafe for Responder<T>
impl<T> Send for Responder<T>
impl<T> Sync for Responder<T>
impl<T> Unpin for Responder<T>
impl<T> !UnwindSafe for Responder<T>
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