[−][src]Struct stateright::actor::SystemModel
A model of an actor system.
Fields
actors: Vec<S::Actor>
init_network: Vec<Envelope<<S::Actor as Actor>::Msg>>
lossy_network: LossyNetwork
duplicating_network: DuplicatingNetwork
system: S
Trait Implementations
impl<S: Clone + System> Clone for SystemModel<S> where
S::Actor: Clone,
S::Actor: Clone,
[src]
S::Actor: Clone,
S::Actor: Clone,
pub fn clone(&self) -> SystemModel<S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: System> Model for SystemModel<S>
[src]
type State = SystemState<S>
The type of state upon which this model operates.
type Action = SystemAction<<S::Actor as Actor>::Msg>
The type of action that transitions between states.
pub fn init_states(&self) -> Vec<Self::State>
[src]
pub fn actions(&self, state: &Self::State, actions: &mut Vec<Self::Action>)
[src]
pub fn next_state(
&self,
last_sys_state: &Self::State,
action: Self::Action
) -> Option<Self::State>
[src]
&self,
last_sys_state: &Self::State,
action: Self::Action
) -> Option<Self::State>
pub fn display_outcome(
&self,
last_state: &Self::State,
action: Self::Action
) -> Option<String> where
Self::State: Debug,
[src]
&self,
last_state: &Self::State,
action: Self::Action
) -> Option<String> where
Self::State: Debug,
pub fn as_svg(&self, path: Path<Self::State, Self::Action>) -> Option<String>
[src]
Draws a sequence diagram for the actor system.
pub fn properties(&self) -> Vec<Property<Self>>
[src]
pub fn within_boundary(&self, state: &Self::State) -> bool
[src]
pub fn next_steps(
&self,
last_state: &Self::State
) -> Vec<(Self::Action, Self::State)>
[src]
&self,
last_state: &Self::State
) -> Vec<(Self::Action, Self::State)>
pub fn next_states(&self, last_state: &Self::State) -> Vec<Self::State>
[src]
pub fn property(&self, name: &'static str) -> Property<Self>
[src]
pub fn checker(self) -> CheckerBuilder<Self> where
Self: Send + Sync + 'static,
Self::State: Hash + Send + Sync,
[src]
Self: Send + Sync + 'static,
Self::State: Hash + Send + Sync,
Auto Trait Implementations
impl<S> RefUnwindSafe for SystemModel<S> where
S: RefUnwindSafe,
<S as System>::Actor: RefUnwindSafe,
<<S as System>::Actor as Actor>::Msg: RefUnwindSafe,
[src]
S: RefUnwindSafe,
<S as System>::Actor: RefUnwindSafe,
<<S as System>::Actor as Actor>::Msg: RefUnwindSafe,
impl<S> Send for SystemModel<S> where
S: Send,
<S as System>::Actor: Send,
<<S as System>::Actor as Actor>::Msg: Send,
[src]
S: Send,
<S as System>::Actor: Send,
<<S as System>::Actor as Actor>::Msg: Send,
impl<S> Sync for SystemModel<S> where
S: Sync,
<S as System>::Actor: Sync,
<<S as System>::Actor as Actor>::Msg: Sync,
[src]
S: Sync,
<S as System>::Actor: Sync,
<<S as System>::Actor as Actor>::Msg: Sync,
impl<S> Unpin for SystemModel<S> where
S: Unpin,
<S as System>::Actor: Unpin,
<<S as System>::Actor as Actor>::Msg: Unpin,
[src]
S: Unpin,
<S as System>::Actor: Unpin,
<<S as System>::Actor as Actor>::Msg: Unpin,
impl<S> UnwindSafe for SystemModel<S> where
S: UnwindSafe,
<S as System>::Actor: UnwindSafe,
<<S as System>::Actor as Actor>::Msg: UnwindSafe,
[src]
S: UnwindSafe,
<S as System>::Actor: UnwindSafe,
<<S as System>::Actor as Actor>::Msg: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,