TriggerOut

Trait TriggerOut 

Source
pub trait TriggerOut {
    type Ok;
    type Err;

    // Required method
    fn into_result(self) -> Result<Self::Ok, Self::Err>;
}
Expand description

Output returned from a trigger. Indicates whether the transition will occur, and may include data given to StateMachine::trans_builder.

Required Associated Types§

Source

type Ok

Data given to StateMachine::trans_builder on a success

Source

type Err

Data given to StataMachine::trans_builder if this trigger fails and is negated

Required Methods§

Source

fn into_result(self) -> Result<Self::Ok, Self::Err>

Convert Self to a Result

Implementations on Foreign Types§

Source§

impl TriggerOut for bool

Source§

impl<Ok, Err> TriggerOut for Result<Ok, Err>

Source§

type Ok = Ok

Source§

type Err = Err

Source§

fn into_result(self) -> Self

Source§

impl<T> TriggerOut for Option<T>

Source§

type Ok = T

Source§

type Err = ()

Source§

fn into_result(self) -> Result<T, ()>

Implementors§