pub struct OutputEffect<Msg> {
pub name: Name,
pub msg: Msg,
/* private fields */
}Expand description
An effect that sends a message to an output channel.
This is used to send messages to the output stage, which is used to collect the results of the simulation.
The OutputEffect is created by StageGraph::output.
Fields§
§name: Name§msg: MsgImplementations§
Trait Implementations§
Source§impl<Msg: Clone> Clone for OutputEffect<Msg>
impl<Msg: Clone> Clone for OutputEffect<Msg>
Source§fn clone(&self) -> OutputEffect<Msg>
fn clone(&self) -> OutputEffect<Msg>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Msg: SendData> Debug for OutputEffect<Msg>
impl<Msg: SendData> Debug for OutputEffect<Msg>
Source§impl<'de, Msg> Deserialize<'de> for OutputEffect<Msg>where
Msg: Deserialize<'de>,
impl<'de, Msg> Deserialize<'de> for OutputEffect<Msg>where
Msg: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Msg> ExternalEffect for OutputEffect<Msg>
impl<Msg> ExternalEffect for OutputEffect<Msg>
Source§fn run(
self: Box<Self>,
_resources: Resources,
) -> BoxFuture<'static, Box<dyn SendData>>
fn run( self: Box<Self>, _resources: Resources, ) -> BoxFuture<'static, Box<dyn SendData>>
Run the effect in production mode. Read more
Source§fn wrap(
f: impl Future<Output = <Self as ExternalEffectAPI>::Response> + Send + 'static,
) -> BoxFuture<'static, Box<dyn SendData>>where
Self: Sized + ExternalEffectAPI,
fn wrap(
f: impl Future<Output = <Self as ExternalEffectAPI>::Response> + Send + 'static,
) -> BoxFuture<'static, Box<dyn SendData>>where
Self: Sized + ExternalEffectAPI,
Helper method for implementers of ExternalEffect.
Source§fn wrap_sync(
response: <Self as ExternalEffectAPI>::Response,
) -> BoxFuture<'static, Box<dyn SendData>>where
Self: Sized + ExternalEffectAPI,
fn wrap_sync(
response: <Self as ExternalEffectAPI>::Response,
) -> BoxFuture<'static, Box<dyn SendData>>where
Self: Sized + ExternalEffectAPI,
Helper method for implementers of ExternalEffect that have a synchronous response.
Source§impl<Msg> ExternalEffectAPI for OutputEffect<Msg>
impl<Msg> ExternalEffectAPI for OutputEffect<Msg>
Auto Trait Implementations§
impl<Msg> Freeze for OutputEffect<Msg>where
Msg: Freeze,
impl<Msg> RefUnwindSafe for OutputEffect<Msg>where
Msg: RefUnwindSafe,
impl<Msg> Send for OutputEffect<Msg>where
Msg: Send,
impl<Msg> Sync for OutputEffect<Msg>
impl<Msg> Unpin for OutputEffect<Msg>where
Msg: Unpin,
impl<Msg> UnsafeUnpin for OutputEffect<Msg>where
Msg: UnsafeUnpin,
impl<Msg> UnwindSafe for OutputEffect<Msg>where
Msg: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more