pub struct EntityBehavior<B> { /* private fields */ }Expand description
Entity-runtime protocol composition around an application behavior.
Implementations§
Source§impl<B> EntityBehavior<B>
impl<B> EntityBehavior<B>
Trait Implementations§
Source§impl<B: Behavior> Behavior for EntityBehavior<B>
impl<B: Behavior> Behavior for EntityBehavior<B>
type Addr = <B as Behavior>::Addr
type Msg = EntityProtocol<<B as Behavior>::Addr, <B as Behavior>::Msg>
type Event = EntityEvent<<B as Behavior>::Event>
type Sends = SendProduct<<B as Behavior>::Sends, Vec<Delivery<<B as Behavior>::Addr, DrainFenceAcknowledged>>>
type Ph = <B as Behavior>::Ph
type Error = <B as Behavior>::Error
type Birth = <B as Behavior>::Birth
Source§fn init(&mut self) -> BehaviorActed<Self>
fn init(&mut self) -> BehaviorActed<Self>
Produce initialization actions before the first event is accepted.
Source§fn transition(&mut self, event: Self::Event) -> BehaviorActed<Self>
fn transition(&mut self, event: Self::Event) -> BehaviorActed<Self>
Fold exactly one event into explicit actions and the next behavior.
Auto Trait Implementations§
impl<B> Freeze for EntityBehavior<B>where
B: Freeze,
impl<B> RefUnwindSafe for EntityBehavior<B>where
B: RefUnwindSafe,
impl<B> Send for EntityBehavior<B>where
B: Send,
impl<B> Sync for EntityBehavior<B>where
B: Sync,
impl<B> Unpin for EntityBehavior<B>where
B: Unpin,
impl<B> UnsafeUnpin for EntityBehavior<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for EntityBehavior<B>where
B: UnwindSafe,
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