[][src]Struct stateright::actor::SystemModel

pub struct SystemModel<S: System> {
    pub actors: Vec<S::Actor>,
    pub init_network: Vec<Envelope<<S::Actor as Actor>::Msg>>,
    pub lossy_network: LossyNetwork,
    pub duplicating_network: DuplicatingNetwork,
    pub system: S,
}

A model of an actor system.

Fields

actors: Vec<S::Actor>init_network: Vec<Envelope<<S::Actor as Actor>::Msg>>lossy_network: LossyNetworkduplicating_network: DuplicatingNetworksystem: S

Trait Implementations

impl<S: Clone + System> Clone for SystemModel<S> where
    S::Actor: Clone,
    S::Actor: Clone
[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 as_svg(&self, path: Path<Self::State, Self::Action>) -> Option<String>[src]

Draws a sequence diagram for the actor system.

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]

impl<S> Send for SystemModel<S> where
    S: Send,
    <S as System>::Actor: Send,
    <<S as System>::Actor as Actor>::Msg: Send
[src]

impl<S> Sync for SystemModel<S> where
    S: Sync,
    <S as System>::Actor: Sync,
    <<S as System>::Actor as Actor>::Msg: Sync
[src]

impl<S> Unpin for SystemModel<S> where
    S: Unpin,
    <S as System>::Actor: Unpin,
    <<S as System>::Actor as Actor>::Msg: Unpin
[src]

impl<S> UnwindSafe for SystemModel<S> where
    S: UnwindSafe,
    <S as System>::Actor: UnwindSafe,
    <<S as System>::Actor as Actor>::Msg: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,