Skip to main content

EventOutcome

Type Alias EventOutcome 

Source
pub type EventOutcome = Result<Option<AppEvent>, KeyEvent>;
Expand description

What App::handle did with an event: Ok carries the follow-up event to send, if any; Err returns a key that arrived while the app was busy. Nothing was done with that key and it was not dropped: the caller keeps it and offers it again once the app is idle.

Aliased Type§

pub enum EventOutcome {
    Ok(Option<AppEvent>),
    Err(KeyEvent),
}

Variants§

§1.0.0

Ok(Option<AppEvent>)

Contains the success value

§1.0.0

Err(KeyEvent)

Contains the error value