Handler

Trait Handler 

Source
pub trait Handler<T>: 'static {
    // Required method
    fn call(&self, args: T);
}

Required Methods§

Source

fn call(&self, args: T)

Implementations on Foreign Types§

Source§

impl<T, S> Handler<S> for Arc<T>
where T: Handler<S>,

Source§

fn call(&self, args: S)

Implementors§

Source§

impl<Func, T> Handler<T> for Func
where Func: 'static + Fn(T),

Source§

impl<T: 'static> Handler<T> for Source<T>