Struct 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<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> 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§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more