EventListenerSyncRoutine

Trait EventListenerSyncRoutine 

Source
pub trait EventListenerSyncRoutine<P, R>:
    Send
    + Sync
    + 'static
where P: Send + Sync + 'static, R: 'static,
{ // Required method fn call(&self, param: &P) -> BuckyResult<R>; }

Required Methods§

Source

fn call(&self, param: &P) -> BuckyResult<R>

Implementors§

Source§

impl<F, P, R> EventListenerSyncRoutine<P, R> for F
where P: Send + Sync + 'static, R: 'static, F: Send + Sync + 'static + Fn(&P) -> BuckyResult<R>,