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
Calls the function.