[][src]Trait cursive::CbFunc

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.

Required methods

fn call_box(self: Box<Self>, _: &mut Cursive)

Calls the function.

Loading content...

Implementors

impl<F: FnOnce(&mut Cursive) + Send> CbFunc for F[src]

Loading content...