Enum cursive::event::EventResult [] [src]

pub enum EventResult {
    Ignored,
    Consumed(Option<Callback>),
}

Answer to an event notification. The event can be consumed or ignored.

Variants

The event was ignored. The parent can keep handling it.

The event was consumed. An optionnal callback to run is attached.

Methods

impl EventResult
[src]

Convenient method to create Consumed(Some(f))

Returns true if self is EventResult::Consumed.