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
IgnoredThe event was ignored. The parent can keep handling it.
Consumed(Option<Callback>)The event was consumed. An optionnal callback to run is attached.
Methods
impl EventResult[src]
fn with_cb<F: 'static + Fn(&mut Cursive)>(f: F) -> Self
Convenient method to create Consumed(Some(f))
fn is_consumed(&self) -> bool
Returns true if self is EventResult::Consumed.