Trait RustofiCallback

Source
pub trait RustofiCallback<T>: FnMut(&T) -> RustofiResult {
    // Required method
    fn clone_boxed(&self) -> Box<dyn RustofiCallback<T>>;
}
Expand description

Wrapper around a callback that returns a RustofiResult

Required Methods§

Trait Implementations§

Source§

impl<T: 'static> Clone for Box<dyn RustofiCallback<T>>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<T, C> RustofiCallback<T> for C
where C: 'static + Clone + FnMut(&T) -> RustofiResult,