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

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

Methods

impl<A, S: 'static + PartialEq + Debug + Clone + Send, 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]

Trait Implementations

impl<A, S, D> Clone for FsmWrapper<A, S, D>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<A, S, D> Sync for FsmWrapper<A, S, D> where
    A: Send,
    D: Send,
    S: Send

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

impl<A, S, D> Unpin for FsmWrapper<A, S, D>

impl<A, S, D> RefUnwindSafe for FsmWrapper<A, S, D>

impl<A, S, D> UnwindSafe for FsmWrapper<A, S, D>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]