Struct netstack3_base::sync::MapRcNotifier
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§
§impl<N, F> MapNotifier<N, F>
impl<N, F> MapNotifier<N, F>
pub 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§
§impl<A, B, N, F> Notifier<A> for MapNotifier<N, F>
impl<A, B, N, F> Notifier<A> for MapNotifier<N, F>
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
source§impl<CC, BC, Meta> RecvFrameContext<BC, Meta> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<BC, Meta> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
source§impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
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.