pub struct IgnoreEventHandler<F, P: Param> { /* private fields */ }Expand description
Handler produced by
into_handler_event_ignored.
Implements Handler<E> for every E: it fetches its Params,
calls the function, and drops the event. It stores no E, so it carries no
event lifetime — borrowed / non-'static events (e.g. wire buffers) work.
Trait Implementations§
Source§impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1)>
impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1)>
Source§impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2)>
impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2)>
Source§impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3)>
impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3)>
Source§impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static, P4: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3, P4)>
impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static, P4: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3, P4)>
Source§impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static, P4: Param + 'static, P5: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3, P4, P5)>
impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static, P4: Param + 'static, P5: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3, P4, P5)>
Source§impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static, P4: Param + 'static, P5: Param + 'static, P6: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3, P4, P5, P6)>
impl<E, F: Send + 'static, P0: Param + 'static, P1: Param + 'static, P2: Param + 'static, P3: Param + 'static, P4: Param + 'static, P5: Param + 'static, P6: Param + 'static> Handler<E> for IgnoreEventHandler<F, (P0, P1, P2, P3, P4, P5, P6)>
Auto Trait Implementations§
impl<F, P> Freeze for IgnoreEventHandler<F, P>
impl<F, P> RefUnwindSafe for IgnoreEventHandler<F, P>
impl<F, P> Send for IgnoreEventHandler<F, P>
impl<F, P> Sync for IgnoreEventHandler<F, P>
impl<F, P> Unpin for IgnoreEventHandler<F, P>
impl<F, P> UnsafeUnpin for IgnoreEventHandler<F, P>
impl<F, P> UnwindSafe for IgnoreEventHandler<F, P>
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