[][src]Struct sealrs::examples::actors::fsm::fsm_actor::FsmActor

pub struct FsmActor { /* fields omitted */ }

Methods

impl FsmActor[src]

pub fn new() -> FsmActor[src]

pub fn state0(
    &mut self,
    msg: &Message,
    ctx: &mut ActorContext,
    data: &Data
) -> StateResult<Self, State, Data>
[src]

pub fn state1(
    &mut self,
    msg: &Message,
    ctx: &mut ActorContext,
    data: &Data
) -> StateResult<Self, State, Data>
[src]

pub fn unhandled(
    &mut self,
    msg: &Message,
    ctx: &mut ActorContext,
    state: &State,
    data: &Data
) -> HandleResult
[src]

pub fn transition(&mut self, from: &State, to: &State)[src]

Trait Implementations

impl Actor for FsmActor[src]

fn post_stop(&mut self, _ctx: ActorContext)[src]

fn as_any(&mut self) -> &dyn Any[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]