[][src]Trait os_balloon::logic::StateMachine

pub trait StateMachine {
    type Next: MainLogic;
    fn execute(self) -> Result<Self::Next, Error>;
}

Trait representing a state machine.

Associated Types

type Next: MainLogic

The logic to run after the current state.

Loading content...

Required methods

fn execute(self) -> Result<Self::Next, Error>

Executes this state and returns the next one.

Loading content...

Implementors

impl StateMachine for OpenStratos<AcquiringFix>[src]

impl StateMachine for OpenStratos<FixAcquired>[src]

impl StateMachine for OpenStratos<GoingDown>[src]

type Next = OpenStratos<Landed>

impl StateMachine for OpenStratos<GoingUp>[src]

impl StateMachine for OpenStratos<Init>[src]

impl StateMachine for OpenStratos<Landed>[src]

impl StateMachine for OpenStratos<WaitingLaunch>[src]

type Next = OpenStratos<GoingUp>

Loading content...