Struct cursive::event::Callback[][src]

pub struct Callback(_);

Callback is a function that can be triggered by an event. It has a mutable access to the cursive root.

Methods

impl Callback
[src]

Wraps the given function into a Callback object.

Wrap a FnMut into a Callback object.

If this methods tries to call itself, nested calls will be no-ops.

Returns a dummy callback that doesn't run anything.

Methods from Deref<Target = Box<Fn(&mut Cursive)>>

Trait Implementations

impl Clone for Callback
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Deref for Callback
[src]

The resulting type after dereferencing.

Important traits for Box<R>

Dereferences the value.

impl From<Rc<Box<Fn(&mut Cursive)>>> for Callback
[src]

Performs the conversion.

impl From<Box<Fn(&mut Cursive) + Send>> for Callback
[src]

Performs the conversion.

impl From<Box<Fn(&mut Cursive)>> for Callback
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Callback

impl !Sync for Callback