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
type Wrapper: ApparatWrapper + From<Self>
[src]
type Wrapper: ApparatWrapper + From<Self>
[src]Required methods
fn handle(
self,
_event: <Self::Wrapper as ApparatWrapper>::Event,
_ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Handled<Self::Wrapper>
[src]
fn handle(
self,
_event: <Self::Wrapper as ApparatWrapper>::Event,
_ctx: &mut <Self::Wrapper as ApparatWrapper>::Context
) -> Handled<Self::Wrapper>
[src]