pub struct Machine<A: Address, S, M, P, E> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<A, S, M, P, E> Behavior for Machine<A, S, M, P, E>
impl<A, S, M, P, E> Behavior for Machine<A, S, M, P, E>
type Addr = A
type Msg = M
type Event = User<A, M>
type Sends = Vec<Delivery<A, Never>>
type Ph = Never
type Error = E
type Birth = NoBirths
Source§fn init(&mut self) -> Result<Actions<A, Never, Self::Sends, NoBirths>, E>
fn init(&mut self) -> Result<Actions<A, Never, Self::Sends, NoBirths>, E>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
event: Self::Event,
) -> Result<Actions<A, Never, Self::Sends, NoBirths>, E>
fn transition( &mut self, event: Self::Event, ) -> Result<Actions<A, Never, Self::Sends, NoBirths>, E>
Fold exactly one event into explicit actions and the next behavior. Read more
Source§fn receive(
&mut self,
from: Self::Addr,
message: Self::Msg,
) -> BehaviorActed<Self>where
Self: Sized,
fn receive(
&mut self,
from: Self::Addr,
message: Self::Msg,
) -> BehaviorActed<Self>where
Self: Sized,
Fold one user communication through the composed protocol. Read more
Source§fn on<Input>(&mut self, input: Input) -> BehaviorActed<Self>
fn on<Input>(&mut self, input: Input) -> BehaviorActed<Self>
Inject one supported semantic input and fold it through this behavior. Read more
Auto Trait Implementations§
impl<A, S, M, P, E> Freeze for Machine<A, S, M, P, E>
impl<A, S, M, P, E> RefUnwindSafe for Machine<A, S, M, P, E>
impl<A, S, M, P, E> Send for Machine<A, S, M, P, E>
impl<A, S, M, P, E> Sync for Machine<A, S, M, P, E>
impl<A, S, M, P, E> Unpin for Machine<A, S, M, P, E>
impl<A, S, M, P, E> UnsafeUnpin for Machine<A, S, M, P, E>where
S: UnsafeUnpin,
P: UnsafeUnpin,
impl<A, S, M, P, E> UnwindSafe for Machine<A, S, M, P, E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more