pub struct Message { /* private fields */ }Expand description
An open message on a Pipeline.
Every Message goes back to its Pipeline: to Pipeline::end, or to
Pipeline::abort when its bytes will not all come. Dropping one
panics. In async code an early return through ? drops what the task
holds, so give the message to abort before returning the error.
§Trait implementations
Droppanics on an unfinished message unless the thread is already unwinding; dropping is not cancellation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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