Skip to main content

UntrackableGuard

Trait UntrackableGuard 

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ยง

fn untrack(&mut self)

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

Trait Implementationsยง

ยง

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

ยง

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ยง

ยง

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,

ยง

fn untrack(&mut self)

ยง

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

ยง

fn untrack(&mut self)

Implementorsยง

ยง

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

ยง

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

ยง

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

ยง

impl<T> UntrackableGuard for DoubleDeref<T>