[][src]Struct sealrs::actors::fsm::Fsm

pub struct Fsm<A, S, D> { /* fields omitted */ }

Methods

impl<A, S: 'static + PartialEq + Debug + Clone + Send, D> Fsm<A, S, D>[src]

pub fn new(ctx: &ActorContext, i_state: S, i_data: D) -> FsmWrapper<A, S, D>[src]

pub fn stub(i_state: S, i_data: D) -> FsmWrapper<A, S, D>[src]

pub fn register_handler<F>(&mut self, state: S, f: F, timeout: Duration) where
    F: 'static + Fn(&mut A, &Message, &mut ActorContext, &D) -> StateResult<A, S, D> + Send
[src]

pub fn register_unhandled<F>(&mut self, f: F) where
    F: 'static + Fn(&mut A, &Message, &mut ActorContext, &S, &D) -> HandleResult + Send
[src]

pub fn register_transition<F>(&mut self, f: F) where
    F: 'static + Fn(&mut A, &S, &S) + Send
[src]

pub fn handle(
    &mut self,
    owner: &mut A,
    msg: Message,
    ctx: ActorContext
) -> HandleResult
[src]

pub fn initialize(&mut self, ctx: &ActorContext)[src]

pub fn goto(state: S) -> StateResult<A, S, D>[src]

pub fn goto_using(state: S, data: D) -> StateResult<A, S, D>[src]

pub fn stay() -> StateResult<A, S, D>[src]

pub fn stay_using(data: D) -> StateResult<A, S, D>[src]

pub fn stop() -> StateResult<A, S, D>[src]

pub fn unhandled() -> StateResult<A, S, D>[src]

Trait Implementations

impl<A, S, D> Drop for Fsm<A, S, D>[src]

Auto Trait Implementations

impl<A, S, D> !Sync for Fsm<A, S, D>

impl<A, S, D> Send for Fsm<A, S, D> where
    A: Send,
    D: Send,
    S: Send

impl<A, S, D> Unpin for Fsm<A, S, D> where
    A: Unpin,
    D: Unpin,
    S: Unpin

impl<A, S, D> !RefUnwindSafe for Fsm<A, S, D>

impl<A, S, D> !UnwindSafe for Fsm<A, S, D>

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]