Trait WrapEventEx

Source
pub trait WrapEventEx<State: 'static + PartialEq, Input: Dispatchable + 'static> {
    // Required method
    fn wrap(self) -> impl FnMut(DispatchPair, State) -> Result<State, State>;
}

Required Methods§

Source

fn wrap(self) -> impl FnMut(DispatchPair, State) -> Result<State, State>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<AppData: 'static + PartialEq, Input: Dispatchable + 'static, T> WrapEventEx<AppData, Input> for T
where T: FnMut(Input, AppData) -> Result<AppData, AppData>,