pub struct Reply<T: Default> { /* private fields */ }
Expand description
A reply handle.
Because it cannot be guaranteed that the reply will be called,
we require that response T
implements default to act as a safe reply
method if reply()
is not called directly.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Reply<T>
impl<T> !RefUnwindSafe for Reply<T>
impl<T> Send for Reply<T>where
T: Send,
impl<T> Sync for Reply<T>where
T: Send,
impl<T> Unpin for Reply<T>
impl<T> !UnwindSafe for Reply<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