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