Skip to main content

UntrackableGuard

Trait UntrackableGuard 

Source
pub trait UntrackableGuard: DerefMut {
    // Required method
    fn untrack(&mut self);
}
Expand description

A reactive, mutable guard that can be untracked to prevent it from notifying subscribers when it is dropped.

Required Methods§

Source

fn untrack(&mut self)

Removes the notifier from the guard, such that it will no longer notify subscribers when it is dropped.

Trait Implementations§

Source§

impl<T> UntrackableGuard for Box<dyn UntrackableGuard<Target = T>>

Source§

fn untrack(&mut self)

Removes the notifier from the guard, such that it will no longer notify subscribers when it is dropped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Inner, Prev, K, T, Guard> UntrackableGuard for KeyedSubfieldWriteGuard<Inner, Prev, K, T, Guard>
where Guard: UntrackableGuard, KeyedSubfield<Inner, Prev, K, T>: Clone, &'a T: for<'a> IntoIterator, Inner: StoreField<Value = Prev>, Prev: 'static, K: Debug + Send + Sync + PartialEq + Eq + Hash + 'static,

Source§

fn untrack(&mut self)

Source§

impl<T> UntrackableGuard for Box<dyn UntrackableGuard<Target = T>>

Source§

fn untrack(&mut self)

Implementors§

Source§

impl<Inner, U> UntrackableGuard for MappedMut<Inner, U>
where Inner: UntrackableGuard,

Source§

impl<Inner, U> UntrackableGuard for MappedMutArc<Inner, U>
where Inner: UntrackableGuard,

Source§

impl<S, G> UntrackableGuard for WriteGuard<S, G>
where S: Notify, G: DerefMut,

Source§

impl<T> UntrackableGuard for DoubleDeref<T>