Struct tor_async_utils::DropNotifyWatchSender
source · pub struct DropNotifyWatchSender<T: DropNotifyEofSignallable>(_);
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.