Trait CbFunc
cursive
pub trait CbFunc: Send { fn call_box(self: Box<Self>, _: &mut Cursive); }
Asynchronous callback function trait.
Every FnOnce(&mut Cursive) -> () + Send automatically implements this.
FnOnce(&mut Cursive) -> () + Send
This is a workaround only because Box<FnOnce()> is not working and FnBox is unstable.
Box<FnOnce()>
FnBox
fn call_box(self: Box<Self>, _: &mut Cursive)
Calls the function.
impl<F: FnOnce(&mut Cursive) + Send> CbFunc for F