pub struct Model<State> { /* private fields */ }Expand description
Actor model
Implementations§
Trait Implementations§
Source§impl<C, const NI: usize, const NO: usize> Add<Actor<C, NI, NO>> for Model<Unknown>where
C: Update + 'static,
Aggregation of a model and an actor into a new model
impl<C, const NI: usize, const NO: usize> Add<Actor<C, NI, NO>> for Model<Unknown>where
C: Update + 'static,
Aggregation of a model and an actor into a new model
Source§impl<C, const NI: usize, const NO: usize> Add<Model<Unknown>> for Actor<C, NI, NO>where
C: Update + 'static,
Aggregation of an actor and a model into a new model
impl<C, const NI: usize, const NO: usize> Add<Model<Unknown>> for Actor<C, NI, NO>where
C: Update + 'static,
Aggregation of an actor and a model into a new model
Source§impl<C, const NI: usize, const NO: usize> AddAssign<Actor<C, NI, NO>> for Model<Unknown>where
C: Update + 'static,
impl<C, const NI: usize, const NO: usize> AddAssign<Actor<C, NI, NO>> for Model<Unknown>where
C: Update + 'static,
Source§fn add_assign(&mut self, rhs: Actor<C, NI, NO>)
fn add_assign(&mut self, rhs: Actor<C, NI, NO>)
Performs the
+= operation. Read moreSource§impl<S: UnknownOrReady> FlowChart for Model<S>
impl<S: UnknownOrReady> FlowChart for Model<S>
Source§fn to_html(&self) -> Result<PathBuf, FlowChartError>
fn to_html(&self) -> Result<PathBuf, FlowChartError>
Writes the flowchart to an HTML file Read more
Source§fn flowchart(self) -> Selfwhere
Self: Sized,
fn flowchart(self) -> Selfwhere
Self: Sized,
Writes the actors flowchart to an HTML file Read more
Source§fn flowchart_open(self) -> Selfwhere
Self: Sized,
fn flowchart_open(self) -> Selfwhere
Self: Sized,
Writes the actors flowchart to an HTML file and open it in the default browser
Source§impl IntoFuture for Model<Running>
impl IntoFuture for Model<Running>
Source§type IntoFuture = Pin<Box<dyn Future<Output = Result<Model<Completed>, ModelError>> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = Result<Model<Completed>, ModelError>> + Send>>
Which kind of future are we turning this into?
Source§type Output = <Pin<Box<dyn Future<Output = Result<Model<Completed>, ModelError>> + Send>> as Future>::Output
type Output = <Pin<Box<dyn Future<Output = Result<Model<Completed>, ModelError>> + Send>> as Future>::Output
The output that the future will produce on completion.
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl<State> IntoIterator for &Model<State>where
State: UnknownOrReady,
impl<State> IntoIterator for &Model<State>where
State: UnknownOrReady,
Auto Trait Implementations§
impl<State> Freeze for Model<State>
impl<State> !RefUnwindSafe for Model<State>
impl<State> Send for Model<State>where
State: Send,
impl<State> Sync for Model<State>where
State: Sync,
impl<State> Unpin for Model<State>where
State: Unpin,
impl<State> !UnwindSafe for Model<State>
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