Trait Callable
pub trait Callable<In, Out = ()>where
In: 'static,
Out: 'static,{
// Required methods
fn try_run(&self, input: In) -> Option<Out>;
fn run(&self, input: In) -> Out;
}
Expand description
A wrapper trait for calling callbacks.