Skip to main content

EventOutcome

Type Alias EventOutcome 

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

What App::handle did: Ok carries a follow-up event; Err returns a key that arrived while busy, untouched, for the caller to offer again when 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