struct SenderDropGuard(Option<Sender>);Expand description
A drop guard for the body Sender.
If the Dispatcher future is dropped (e.g. the runtime driving the
connection is shut down) while it still owns a body Sender, the guard
sends an incomplete-message error so the receiver sees an error instead
of a silent, clean end-of-stream.
Tuple Fields§
§0: Option<Sender>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SenderDropGuard
impl !RefUnwindSafe for SenderDropGuard
impl Send for SenderDropGuard
impl Sync for SenderDropGuard
impl Unpin for SenderDropGuard
impl UnsafeUnpin for SenderDropGuard
impl !UnwindSafe for SenderDropGuard
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