Skip to main content

Become

Type Alias Become 

Source
pub type Become<A, Ph = Never> = Step<Ph, Exit<A>>;

Aliased Type§

pub enum Become<A, Ph = Never> {
    Continue,
    Goto(Ph),
    Stop(Exit<A>),
}

Variants§

§

Continue

Keep the current behavior; poll for the next event.

§

Goto(Ph)

Transition to another phase from the menu (no-op when already there).

§

Stop(Exit<A>)

Stop after this reaction, with the carried reason.