pub struct HandlerChain<H1, H2> { /* private fields */ }Expand description
A handler that forwards events to two handlers in sequence.
Implementations§
Source§impl<H1, H2> HandlerChain<H1, H2>
impl<H1, H2> HandlerChain<H1, H2>
Trait Implementations§
Source§impl<H1: Clone, H2: Clone> Clone for HandlerChain<H1, H2>
impl<H1: Clone, H2: Clone> Clone for HandlerChain<H1, H2>
Source§fn clone(&self) -> HandlerChain<H1, H2>
fn clone(&self) -> HandlerChain<H1, H2>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H1: Default, H2: Default> Default for HandlerChain<H1, H2>
impl<H1: Default, H2: Default> Default for HandlerChain<H1, H2>
Source§fn default() -> HandlerChain<H1, H2>
fn default() -> HandlerChain<H1, H2>
Returns the “default value” for a type. Read more
Source§impl<E, H1, H2> EventHandler<E> for HandlerChain<H1, H2>where
H1: EventHandler<E>,
H2: EventHandler<E>,
impl<E, H1, H2> EventHandler<E> for HandlerChain<H1, H2>where
H1: EventHandler<E>,
H2: EventHandler<E>,
Auto Trait Implementations§
impl<H1, H2> Freeze for HandlerChain<H1, H2>
impl<H1, H2> RefUnwindSafe for HandlerChain<H1, H2>where
H1: RefUnwindSafe,
H2: RefUnwindSafe,
impl<H1, H2> Send for HandlerChain<H1, H2>
impl<H1, H2> Sync for HandlerChain<H1, H2>
impl<H1, H2> Unpin for HandlerChain<H1, H2>
impl<H1, H2> UnsafeUnpin for HandlerChain<H1, H2>where
H1: UnsafeUnpin,
H2: UnsafeUnpin,
impl<H1, H2> UnwindSafe for HandlerChain<H1, H2>where
H1: UnwindSafe,
H2: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E, T> EventHandlerChainExt<E> for Twhere
T: EventHandler<E>,
impl<E, T> EventHandlerChainExt<E> for Twhere
T: EventHandler<E>,
Source§fn chain<H>(self, other: H) -> HandlerChain<Self, H>where
H: EventHandler<E>,
fn chain<H>(self, other: H) -> HandlerChain<Self, H>where
H: EventHandler<E>,
Chain this handler with another handler, invoking both in order.