Struct rxrust::ops::delay::DelayOp [−][src]
pub struct DelayOp<S, SD> { /* fields omitted */ }
Trait Implementations
impl<'o, S, SD> LocalObservable<'o> for DelayOp<S, SD> where
'o: 'static,
S: LocalObservable<'o> + 'static,
S::Unsub: 'static,
SD: Scheduler,
impl<'o, S, SD> LocalObservable<'o> for DelayOp<S, SD> where
'o: 'static,
S: LocalObservable<'o> + 'static,
S::Unsub: 'static,
SD: Scheduler,
type Unsub = RcMultiSubscription
emit only the first item emitted by an Observable
Emit only the last final item emitted by a source observable or a default item given. Read more
Emit only item n (0-indexed) emitted by an Observable
Do not emit any items from an Observable but mirror its termination notification Read more
Determine whether all items emitted by an Observable meet some criteria
Determine whether an Observable emits a particular item or not
Emits only last final item emitted by a source observable. Read more
Call a function when observable completes, errors or is unsubscribed from.
fn flatten<Inner, A>(self) -> FlattenOp<Self, Inner> where
Inner: Observable<Item = A, Err = Self::Err>,
fn flatten<Inner, A>(self) -> FlattenOp<Self, Inner> where
Inner: Observable<Item = A, Err = Self::Err>,
Creates an Observable that combines all the emissions from Observables that get emitted from an Observable. Read more
Applies given function to each item emitted by this Observable, where that function returns an Observable that itself emits items. It then merges the emissions of these resulting Observables, emitting these merged results as its own sequence. Read more
Groups items emitted by the source Observable into Observables. Each emitted Observable emits items matching the key returned by the discriminator function. Read more
Creates a new stream which calls a closure on each element and uses its return as the value. Read more
combine two Observables into one by merging their emissions Read more
Converts a higher-order Observable into a first-order Observable which concurrently delivers all values that are emitted on the inner Observables. Read more
Emit only those items from an Observable that pass a predicate test Read more
fn filter_map<F, SourceItem, Item>(self, f: F) -> FilterMapOp<Self, F> where
F: FnMut(SourceItem) -> Option<Item>,
fn filter_map<F, SourceItem, Item>(self, f: F) -> FilterMapOp<Self, F> where
F: FnMut(SourceItem) -> Option<Item>,
The closure must return an Option
box an observable to a safety object and convert it to a simple type
BoxOp
, which only care Item
and Err
Observable emitted. Read more
Ignore the first count
values emitted by the source Observable. Read more
fn skip_until<F>(self, predicate: F) -> SkipUntilOp<Self, F> where
F: FnMut(&Self::Item) -> bool,
fn skip_until<F>(self, predicate: F) -> SkipUntilOp<Self, F> where
F: FnMut(&Self::Item) -> bool,
Ignore the values emitted by the source Observable until the predicate
returns true for the value. Read more
fn skip_while<F>(self, callback: F) -> SkipWhileOp<Self, F> where
F: FnMut(&Self::Item) -> bool,
fn skip_while<F>(self, callback: F) -> SkipWhileOp<Self, F> where
F: FnMut(&Self::Item) -> bool,
Ignore values while result of a callback is true. Read more
Ignore the last count
values emitted by the source Observable. Read more
Emits only the first count
values emitted by the source Observable. Read more
Emits the values emitted by the source Observable until a notifier
Observable emits a value. Read more
fn take_while<F>(self, callback: F) -> TakeWhileOp<Self, F> where
F: FnMut(&Self::Item) -> bool,
fn take_while<F>(self, callback: F) -> TakeWhileOp<Self, F> where
F: FnMut(&Self::Item) -> bool,
Emits values while result of an callback is true. Read more
Emits only the last count
values emitted by the source Observable. Read more
Emits item it has most recently emitted since the previous sampling Read more
The Scan operator applies a function to the first item emitted by the source observable and then emits the result of that function as its own first emission. It also feeds the result of the function back into the function along with the second item emitted by the source observable in order to generate its second emission. It continues to feed back its own subsequent emissions along with the subsequent emissions from the source Observable in order to create the rest of its sequence. Read more
Works like scan_initial
but starts with a
value defined by a Default
trait for the first argument binary_op
operator operates on. Read more
Apply a function to each item emitted by an observable, sequentially, and emit the final value, after source observable completes. Read more
Works like reduce_initial
but starts with
a value defined by a Default
trait for the first argument f
operator operates on. Read more
Emits the item from the source observable that had the maximum value. Read more
Emits the item from the source observable that had the minimum value. Read more
Calculates the sum of numbers emitted by an source observable and emits this sum when source completes. Read more
Emits the number of items emitted by a source observable when this source completes. Read more
Calculates the sum of numbers emitted by an source observable and emits this sum when source completes. Read more
Returns a ConnectableObservable. A ConnectableObservable Observable resembles an ordinary Observable, except that it does not begin emitting items when it is subscribed to, but only when the Connect operator is applied to it. In this way you can wait for all intended observers to subscribe to the Observable before the Observable begins emitting items. Read more
Returns a new Observable that multicast (shares) the original
Observable. As long as there is at least one Subscriber this
Observable will be subscribed and emitting data. When all subscribers
have unsubscribed it will unsubscribe from the source Observable.
Because the Observable is multicasting it makes the stream hot
.
This is an alias for publish().ref_count()
Read more
Delays the emission of items from the source Observable by a given timeout
or until a given Instant
. Read more
Specify the Scheduler on which an Observable will operate Read more
Re-emits all notifications from source Observable with specified scheduler. Read more
Emits a value from the source Observable only after a particular time span has passed without another source emission. Read more
fn throttle_time<SD>(
self,
duration: Duration,
edge: ThrottleEdge,
scheduler: SD
) -> ThrottleTimeOp<Self, SD>
fn throttle_time<SD>(
self,
duration: Duration,
edge: ThrottleEdge,
scheduler: SD
) -> ThrottleTimeOp<Self, SD>
Emits a value from the source Observable, then ignores subsequent source values for duration milliseconds, then repeats this process. Read more
Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items. Read more
‘Zips up’ two observable into a single observable of pairs. Read more
Combines the source Observable with other Observables to create an Observable whose values are calculated from the latest values of each, only when the source emits. Read more
Emits default value if Observable completed with empty result Read more
Buffers emitted values of type T in a Vec
Buffers emitted values of type T in a Vec
fn buffer_with_count_and_time<S>(
self,
count: usize,
time: Duration,
scheduler: S
) -> BufferWithCountOrTimerOp<Self, S>
fn buffer_with_count_and_time<S>(
self,
count: usize,
time: Duration,
scheduler: S
) -> BufferWithCountOrTimerOp<Self, S>
Buffers emitted values of type T in a Vec
fn combine_latest<O, BinaryOp, OutputItem>(
self,
other: O,
binary_op: BinaryOp
) -> CombineLatestOp<Self, O, BinaryOp> where
O: Observable<Err = Self::Err>,
BinaryOp: FnMut(Self::Item, O::Item) -> OutputItem,
fn combine_latest<O, BinaryOp, OutputItem>(
self,
other: O,
binary_op: BinaryOp
) -> CombineLatestOp<Self, O, BinaryOp> where
O: Observable<Err = Self::Err>,
BinaryOp: FnMut(Self::Item, O::Item) -> OutputItem,
Emits item which is combining latest items from two observables. Read more
type Unsub = RcMultiSubscription
fn actual_subscribe<O>(self, _observer: O) -> Self::Unsub where
O: Observer<Item = Self::Item, Err = Self::Err> + Send + Sync + 'static,
Convert to a thread-safe mode.
Auto Trait Implementations
impl<S, SD> RefUnwindSafe for DelayOp<S, SD> where
S: RefUnwindSafe,
SD: RefUnwindSafe,
impl<S, SD> UnwindSafe for DelayOp<S, SD> where
S: UnwindSafe,
SD: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more