Struct tor_basic_utils::futures::DropNotifyWatchSender
source · [−]pub struct DropNotifyWatchSender<T: Default>(_);
Expand description
Wrapper for postage::watch::Sender
that sends Default
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
sourceimpl<T: Default> DropNotifyWatchSender<T>
impl<T: Default> DropNotifyWatchSender<T>
Methods from Deref<Target = Sender<T>>
sourcepub fn borrow_mut(&'s mut self) -> RefMut<'s, T>
pub fn borrow_mut(&'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
sourceimpl<T: Debug + Default> Debug for DropNotifyWatchSender<T>
impl<T: Debug + Default> Debug for DropNotifyWatchSender<T>
sourceimpl<T: Default> Deref for DropNotifyWatchSender<T>
impl<T: Default> Deref for DropNotifyWatchSender<T>
sourceimpl<T: Default> DerefMut for DropNotifyWatchSender<T>
impl<T: Default> DerefMut for DropNotifyWatchSender<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for DropNotifyWatchSender<T>
impl<T> Send for DropNotifyWatchSender<T>where
T: Send + Sync,
impl<T> Sync for DropNotifyWatchSender<T>where
T: Send + Sync,
impl<T> Unpin for DropNotifyWatchSender<T>
impl<T> !UnwindSafe for DropNotifyWatchSender<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more