Trait cursive::CbFunc

source ·
pub trait CbFunc: Send {
    fn call_box(self: Box<Self>, _: &mut Cursive);
}
Expand description

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.

Required Methods

Calls the function.

Implementors