Struct netstack3_core::sync::MapRcNotifier
source · pub struct MapRcNotifier<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) -> MapNotifier<N, F>
pub fn new(notifier: N, map: F) -> MapNotifier<N, F>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.