Struct netstack3_sync::rc::MapNotifier
source · pub struct MapNotifier<N, F> { /* private fields */ }
Expand description
An implementation of Notifier
that wraps another Notifier
and applies
a function on notified objects.
Implementations§
source§impl<N, F> MapNotifier<N, F>
impl<N, F> MapNotifier<N, F>
sourcepub fn new(notifier: N, map: F) -> Self
pub fn new(notifier: N, map: F) -> Self
Creates a new MapNotifier
that wraps notifier
with a mapping
function F
.
Trait Implementations§
Auto Trait Implementations§
impl<N, F> Freeze for MapNotifier<N, F>
impl<N, F> RefUnwindSafe for MapNotifier<N, F>where
N: RefUnwindSafe,
F: RefUnwindSafe,
impl<N, F> Send for MapNotifier<N, F>
impl<N, F> Sync for MapNotifier<N, F>
impl<N, F> Unpin for MapNotifier<N, F>
impl<N, F> UnwindSafe for MapNotifier<N, F>where
N: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more