Skip to main content

EventHandlerChainExt

Trait EventHandlerChainExt 

Source
pub trait EventHandlerChainExt<E>: EventHandler<E> + Sized {
    // Provided method
    fn chain<H>(self, other: H) -> HandlerChain<Self, H>
       where H: EventHandler<E> { ... }
}
Expand description

Extension trait for chaining event handlers together.

Provided Methods§

Source

fn chain<H>(self, other: H) -> HandlerChain<Self, H>
where H: EventHandler<E>,

Chain this handler with another handler, invoking both in order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E, T> EventHandlerChainExt<E> for T
where T: EventHandler<E> + Sized,