Struct dvcompute::simulation::observable::observer::Return [−][src]
pub struct Return<M, T> { /* fields omitted */ }
Expand description
Allows creating the Observer
computation from a pure value.
Trait Implementations
type Message = M
type Message = M
The outer message that the observer reacts to.
type Item = T
type Item = T
The type of the item that the computation returns.
Bind the current computation with its continuation within the resulting computation.
Map the current computation using the specified transform.
Zip the current computation with another one within the resulting computation.
The function application.
Convert into a boxed value.
Auto Trait Implementations
impl<M, T> RefUnwindSafe for Return<M, T> where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> UnwindSafe for Return<M, T> where
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Observer = M
type Observer = M
The target computation.
Convert to the Observer
computation.