Trait netstack3_core::sync::RcNotifier

source ·
pub trait RcNotifier<T>: Send {
    // Required method
    fn notify(&mut self, data: T);
}
Expand description

Provides delegated notification of all strong references of a Primary being dropped.

See Primary::unwrap_with_notifier.

Required Methods§

source

fn notify(&mut self, data: T)

Called when the data contained in the Primary reference can be extracted out because there are no more strong references to it.

Implementations on Foreign Types§

source§

impl<T> Notifier<T> for Infallible

A handy implementation for the common Infallible “Never” type.

source§

fn notify(&mut self, _data: T)

Implementors§

source§

impl<A, B, N, F> Notifier<A> for MapNotifier<N, F>
where N: Notifier<B>, F: FnOnce(A) -> B, MapNotifier<N, F>: Send,

source§

impl<T> Notifier<T> for ArcNotifier<T>
where T: Send,