Trait apparat::ApparatState[][src]

pub trait ApparatState: Sized {
    type Wrapper: ApparatWrapper + From<Self>;
    fn handle(
        self,
        _event: <Self::Wrapper as ApparatWrapper>::Event,
        _ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
    ) -> Handled<Self::Wrapper>; fn init(
        self,
        _ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
    ) -> Self::Wrapper { ... }
fn is_init(&self, _ctx: &<Self::Wrapper as ApparatWrapper>::Context) -> bool { ... } }
Expand description

A trait that must be implemented by all provided state types. Have a look at the readme or the examples for details.

Associated Types

Required methods

fn handle(
    self,
    _event: <Self::Wrapper as ApparatWrapper>::Event,
    _ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Handled<Self::Wrapper>
[src]

Provided methods

fn init(
    self,
    _ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Self::Wrapper
[src]

fn is_init(&self, _ctx: &<Self::Wrapper as ApparatWrapper>::Context) -> bool[src]

Implementors