pub struct Delay<F, M> { /* private fields */ }Expand description
Allows delaying the Observable computation by the specified function.
Trait Implementations§
Source§impl<F, M> Observable for Delay<F, M>where
F: FnOnce() -> M + 'static,
M: Observable + 'static,
impl<F, M> Observable for Delay<F, M>where
F: FnOnce() -> M + 'static,
M: Observable + 'static,
Source§type Message = <M as Observable>::Message
type Message = <M as Observable>::Message
The type of messages to notify in the current modeling time.
Source§fn subscribe<O>(self, observer: O) -> EventBox<DisposableBox>
fn subscribe<O>(self, observer: O) -> EventBox<DisposableBox>
Subscribe the observer.
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.
Source§fn hold(self, dt: f64) -> Hold<Self>
fn hold(self, dt: f64) -> Hold<Self>
Hold the receiving of messages for the specified time interval.
Source§fn holdc<U, F>(self, f: F) -> HoldC<Self, U, F>
fn holdc<U, F>(self, f: F) -> HoldC<Self, U, F>
Hold the receiving of messages for intervals calculated within
Event computation.Source§fn merge<U>(self, other: U) -> Merge<Self, U>
fn merge<U>(self, other: U) -> Merge<Self, U>
Merge the current computation with another one within the resulting computation.
Source§fn into_boxed(self) -> ObservableBox<Self::Message>
fn into_boxed(self) -> ObservableBox<Self::Message>
Convert into a boxed value.
Auto Trait Implementations§
impl<F, M> Freeze for Delay<F, M>where
F: Freeze,
impl<F, M> RefUnwindSafe for Delay<F, M>where
F: RefUnwindSafe,
M: RefUnwindSafe,
impl<F, M> Send for Delay<F, M>
impl<F, M> Sync for Delay<F, M>
impl<F, M> Unpin for Delay<F, M>
impl<F, M> UnwindSafe for Delay<F, M>where
F: UnwindSafe,
M: 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<M> IntoObservable for Mwhere
M: Observable,
impl<M> IntoObservable for Mwhere
M: Observable,
Source§type Observable = M
type Observable = M
The target computation.
Source§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.