pub struct Stash<B: Behavior> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<B, A, Sends, Br> Behavior for Stash<B>where
A: Address,
Sends: SendAlgebra,
Br: BirthMode,
B: Behavior<Addr = A, Ph = Never, Sends = Sends, Birth = Br>,
impl<B, A, Sends, Br> Behavior for Stash<B>where
A: Address,
Sends: SendAlgebra,
Br: BirthMode,
B: Behavior<Addr = A, Ph = Never, Sends = Sends, Birth = Br>,
type Addr = A
type Msg = <B as Behavior>::Msg
type Event = <B as Behavior>::Event
type Sends = Sends
type Ph = Never
type Error = <B as Behavior>::Error
type Birth = Br
Source§fn init(
&mut self,
_: InitializationTurn,
) -> Result<Actions<A, Never, Sends, Br>, B::Error>
fn init( &mut self, _: InitializationTurn, ) -> Result<Actions<A, Never, Sends, Br>, B::Error>
Produce initialization actions before the first event is accepted. Read more
Source§fn transition(
&mut self,
_: ActiveTurn,
event: B::Event,
) -> Result<Actions<A, Never, Sends, Br>, B::Error>
fn transition( &mut self, _: ActiveTurn, event: B::Event, ) -> Result<Actions<A, Never, Sends, Br>, B::Error>
Fold exactly one event into explicit actions and the next behavior. Read more
Source§impl<B> BehaviorBase for Stash<B>
impl<B> BehaviorBase for Stash<B>
Source§impl<B: Behavior<Ph = Never>> StashStatus for Stash<B>
impl<B: Behavior<Ph = Never>> StashStatus for Stash<B>
fn stashed_messages(&self) -> usize
Auto Trait Implementations§
impl<B> Freeze for Stash<B>where
B: Freeze,
impl<B> RefUnwindSafe for Stash<B>
impl<B> Send for Stash<B>
impl<B> Sync for Stash<B>
impl<B> Unpin for Stash<B>
impl<B> UnsafeUnpin for Stash<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Stash<B>
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