Struct stateright::actor::ActorModelState
source · pub struct ActorModelState<A: Actor, H = ()> {
pub actor_states: Vec<Arc<A::State>>,
pub network: Network<A::Msg>,
pub timers_set: Vec<Timers<A::Timer>>,
pub crashed: Vec<bool>,
pub history: H,
}
Expand description
Represents a snapshot in time for the entire actor system.
Fields§
§actor_states: Vec<Arc<A::State>>
§network: Network<A::Msg>
§timers_set: Vec<Timers<A::Timer>>
§crashed: Vec<bool>
§history: H
Trait Implementations§
source§impl<A, H> PartialEq<ActorModelState<A, H>> for ActorModelState<A, H>where
A: Actor,
A::State: PartialEq,
H: PartialEq,
impl<A, H> PartialEq<ActorModelState<A, H>> for ActorModelState<A, H>where A: Actor, A::State: PartialEq, H: PartialEq,
source§impl<A, H> Representative for ActorModelState<A, H>where
A: Actor,
A::Msg: Rewrite<Id>,
A::State: Ord + Rewrite<Id>,
H: Rewrite<Id>,
impl<A, H> Representative for ActorModelState<A, H>where A: Actor, A::Msg: Rewrite<Id>, A::State: Ord + Rewrite<Id>, H: Rewrite<Id>,
source§fn representative(&self) -> Self
fn representative(&self) -> Self
Generates a representative value in an equivalence class for
self
.source§impl<A, H> Serialize for ActorModelState<A, H>where
A: Actor,
A::State: Serialize,
A::Msg: Serialize,
A::Timer: Serialize,
H: Serialize,
impl<A, H> Serialize for ActorModelState<A, H>where A: Actor, A::State: Serialize, A::Msg: Serialize, A::Timer: Serialize, H: Serialize,
impl<A, H> Eq for ActorModelState<A, H>where A: Actor, A::State: Eq, H: Eq,
Auto Trait Implementations§
impl<A, H> RefUnwindSafe for ActorModelState<A, H>where H: RefUnwindSafe, <A as Actor>::Msg: RefUnwindSafe, <A as Actor>::State: RefUnwindSafe, <A as Actor>::Timer: RefUnwindSafe,
impl<A, H> Send for ActorModelState<A, H>where H: Send, <A as Actor>::Msg: Send, <A as Actor>::State: Send + Sync, <A as Actor>::Timer: Send,
impl<A, H> Sync for ActorModelState<A, H>where H: Sync, <A as Actor>::Msg: Sync, <A as Actor>::State: Send + Sync, <A as Actor>::Timer: Sync,
impl<A, H> Unpin for ActorModelState<A, H>where H: Unpin, <A as Actor>::Msg: Unpin, <A as Actor>::Timer: Unpin,
impl<A, H> UnwindSafe for ActorModelState<A, H>where H: UnwindSafe, <A as Actor>::Msg: UnwindSafe + RefUnwindSafe, <A as Actor>::State: RefUnwindSafe, <A as Actor>::Timer: 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more