[][src]Trait fui::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> CbFunc for F where
    F: Send + FnOnce(&mut Cursive), 
[src]

Loading content...