[−][src]Struct sealrs::actors::fsm::Fsm
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, &mut D) -> StateResult<A, S, D> + Send,
[src]
F: 'static + Fn(&mut A, &Message, &mut ActorContext, &mut D) -> StateResult<A, S, D> + Send,
pub fn register_unhandled<F>(&mut self, f: F) where
F: 'static + Fn(&mut A, &Message, &mut ActorContext, &S, &mut D) -> HandleResult + Send,
[src]
F: 'static + Fn(&mut A, &Message, &mut ActorContext, &S, &mut D) -> HandleResult + Send,
pub fn register_transition<F>(&mut self, f: F) where
F: 'static + Fn(&mut A, &S, &S) + Send,
[src]
F: 'static + Fn(&mut A, &S, &S) + Send,
pub fn handle(
&mut self,
owner: &mut A,
msg: Message,
ctx: ActorContext
) -> HandleResult
[src]
&mut self,
owner: &mut A,
msg: Message,
ctx: ActorContext
) -> HandleResult
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
Auto Trait Implementations
impl<A, S, D> !Sync for Fsm<A, S, D>
impl<A, S, D> Unpin for Fsm<A, S, D> where
A: Unpin,
D: Unpin,
S: Unpin,
A: Unpin,
D: Unpin,
S: Unpin,
impl<A, S, D> Send for Fsm<A, S, D> where
A: Send,
D: Send,
S: Send,
A: Send,
D: Send,
S: Send,
impl<A, S, D> !UnwindSafe for Fsm<A, S, D>
impl<A, S, D> !RefUnwindSafe for Fsm<A, S, D>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,