Struct dvcompute::simulation::observable::ObservableBox
source · pub struct ObservableBox<T> { /* private fields */ }
Expand description
It represents the boxed Observable
computation.
Trait Implementations§
source§impl<T> Observable for ObservableBox<T>
impl<T> Observable for ObservableBox<T>
source§fn subscribe<O>(self, observer: O) -> EventBox<DisposableBox>
fn subscribe<O>(self, observer: O) -> EventBox<DisposableBox>
Subscribe the observer.
source§fn into_boxed(self) -> ObservableBox<Self::Message>where
Self: Sized + 'static,
fn into_boxed(self) -> ObservableBox<Self::Message>where
Self: Sized + 'static,
Convert into a boxed value.
source§fn map<B, F>(self, f: F) -> Map<Self, B, F>
fn map<B, F>(self, f: F) -> Map<Self, B, F>
Map the current computation using the specified transform.
source§fn mapc<U, B, F>(self, f: F) -> MapC<Self, U, B, F>
fn mapc<U, B, F>(self, f: F) -> MapC<Self, U, B, F>
Map the current computation using the specified transform computation.
Auto Trait Implementations§
impl<T> Freeze for ObservableBox<T>
impl<T> !RefUnwindSafe for ObservableBox<T>
impl<T> !Send for ObservableBox<T>
impl<T> !Sync for ObservableBox<T>
impl<T> Unpin for ObservableBox<T>
impl<T> !UnwindSafe for ObservableBox<T>
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<M> IntoObservable for Mwhere
M: Observable,
impl<M> IntoObservable for Mwhere
M: Observable,
§type Observable = M
type Observable = M
The target computation.
§type Message = <M as Observable>::Message
type Message = <M as Observable>::Message
The type of messages about which the computation notifies.
source§fn into_observable(self) -> <M as IntoObservable>::Observable
fn into_observable(self) -> <M as IntoObservable>::Observable
Convert to the
Observable
computation.