pub struct DropNotifyWatchSender<T: DropNotifyEofSignallable>(/* private fields */);
Expand description
Wrapper for postage::watch::Sender
that sends DropNotifyEof::eof()
when dropped
Derefs to the inner Sender
.
Ideally this would be behaviour promised by upstream, or something See https://github.com/austinjones/postage-rs/issues/57.
Implementations§
Source§impl<T: DropNotifyEofSignallable> DropNotifyWatchSender<T>
impl<T: DropNotifyEofSignallable> DropNotifyWatchSender<T>
Methods from Deref<Target = Sender<T>>§
Sourcepub fn borrow_mut<'s>(&'s mut self) -> RefMut<'s, T>
pub fn borrow_mut<'s>(&'s mut self) -> RefMut<'s, T>
Mutably borrows the contained value, blocking the channel while the borrow is held.
After the borrow is released, receivers will be notified of a new value.
Trait Implementations§
Source§impl<T: Debug + DropNotifyEofSignallable> Debug for DropNotifyWatchSender<T>
impl<T: Debug + DropNotifyEofSignallable> Debug for DropNotifyWatchSender<T>
Source§impl<T: DropNotifyEofSignallable> Deref for DropNotifyWatchSender<T>
impl<T: DropNotifyEofSignallable> Deref for DropNotifyWatchSender<T>
Source§impl<T: DropNotifyEofSignallable> DerefMut for DropNotifyWatchSender<T>
impl<T: DropNotifyEofSignallable> DerefMut for DropNotifyWatchSender<T>
Source§impl<T: DropNotifyEofSignallable> Drop for DropNotifyWatchSender<T>
impl<T: DropNotifyEofSignallable> Drop for DropNotifyWatchSender<T>
Auto Trait Implementations§
impl<T> Freeze for DropNotifyWatchSender<T>
impl<T> !RefUnwindSafe for DropNotifyWatchSender<T>
impl<T> Send for DropNotifyWatchSender<T>
impl<T> Sync for DropNotifyWatchSender<T>
impl<T> Unpin for DropNotifyWatchSender<T>
impl<T> !UnwindSafe for DropNotifyWatchSender<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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes