[−][src]Struct rxrust::observable::Observable
A representation of any set of values over any amount of time. This is the most basic building block rxrust
Methods
impl<F> Observable<F>
[src]
pub fn new<S, U>(subscribe: F) -> Self where
F: FnOnce(Subscriber<S, U>),
[src]
F: FnOnce(Subscriber<S, U>),
param subscribe
: the function that is called when the Observable is
initially subscribed to. This function is given a Subscriber, to which
new values can be next
ed, or an error
method can be called to raise
an error, or complete
can be called to notify of a successful
completion.
Trait Implementations
impl<F> Fork for Observable<F> where
F: Clone,
[src]
F: Clone,
type Output = ForkObservable<F>
fn fork(&self) -> Self::Output
[src]
impl<F> IntoShared for Observable<F> where
F: Send + Sync + 'static,
[src]
F: Send + Sync + 'static,
impl<F, Item, Err, S, U> RawSubscribable<Item, Err, Subscriber<S, U>> for Observable<F> where
F: FnOnce(Subscriber<S, U>),
U: SubscriptionLike + Clone + 'static,
[src]
F: FnOnce(Subscriber<S, U>),
U: SubscriptionLike + Clone + 'static,
type Unsub = U
A type implementing SubscriptionLike
fn raw_subscribe(self, subscriber: Subscriber<S, U>) -> Self::Unsub
[src]
impl<F: Clone> Clone for Observable<F>
[src]
fn clone(&self) -> Observable<F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<F> Send for Observable<F> where
F: Send,
F: Send,
impl<F> Sync for Observable<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Observable<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Observable<F> where
F: UnwindSafe,
F: UnwindSafe,
impl<F> RefUnwindSafe for Observable<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
Blanket Implementations
impl<Item, O> Last<Item> for O
[src]
fn last_or(self, default: Item) -> LastOrOp<Self, Item> where
Self: Sized,
[src]
Self: Sized,
fn last(self) -> LastOrOp<Self, Item> where
Self: Sized,
[src]
Self: Sized,
impl<O, OutputItem> Reduce<OutputItem> for O
[src]
fn reduce_initial<InputItem, BinaryOp>(
self,
initial: OutputItem,
binary_op: BinaryOp
) -> ReduceOp<Self, BinaryOp, InputItem, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
OutputItem: Clone,
[src]
self,
initial: OutputItem,
binary_op: BinaryOp
) -> ReduceOp<Self, BinaryOp, InputItem, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
OutputItem: Clone,
fn reduce<InputItem, BinaryOp>(
self,
binary_op: BinaryOp
) -> LastOrOp<ScanOp<Self, BinaryOp, InputItem, OutputItem>, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
OutputItem: Default + Clone,
[src]
self,
binary_op: BinaryOp
) -> LastOrOp<ScanOp<Self, BinaryOp, InputItem, OutputItem>, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
OutputItem: Default + Clone,
impl<O, Item> MinMax<Item> for O
[src]
fn max(self) -> MinMaxOp<Self, Item> where
Self: Sized,
Item: Copy + Send + PartialOrd<Item>,
[src]
Self: Sized,
Item: Copy + Send + PartialOrd<Item>,
fn min(self) -> MinMaxOp<Self, Item> where
Self: Sized,
Item: Copy + Send + PartialOrd<Item>,
[src]
Self: Sized,
Item: Copy + Send + PartialOrd<Item>,
impl<O, Item> Sum<Item> for O
[src]
fn sum(self) -> SumOp<Self, Item> where
Self: Sized,
Item: Copy + Default + Add<Item, Output = Item>,
[src]
Self: Sized,
Item: Copy + Default + Add<Item, Output = Item>,
impl<O> Count for O
[src]
impl<O, Item> Average<Item> for O where
Item: Copy + Send + Default + Add<Item, Output = Item> + Mul<f64, Output = Item>,
[src]
Item: Copy + Send + Default + Add<Item, Output = Item> + Mul<f64, Output = Item>,
fn average(
Self
) -> MapOp<LastOrOp<ScanOp<O, fn((Item, usize), Item) -> (Item, usize), Item, (Item, usize)>, (Item, usize)>, fn((Item, usize)) -> Item, (Item, usize)>
[src]
Self
) -> MapOp<LastOrOp<ScanOp<O, fn((Item, usize), Item) -> (Item, usize), Item, (Item, usize)>, (Item, usize)>, fn((Item, usize)) -> Item, (Item, usize)>
impl<O, Item> Map<Item> for O
[src]
impl<'a, T, O> Filter<T> for O
[src]
impl<O, OutputItem> Scan<OutputItem> for O
[src]
fn scan_initial<InputItem, BinaryOp>(
self,
initial_value: OutputItem,
binary_op: BinaryOp
) -> ScanOp<Self, BinaryOp, InputItem, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
[src]
self,
initial_value: OutputItem,
binary_op: BinaryOp
) -> ScanOp<Self, BinaryOp, InputItem, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
fn scan<InputItem, BinaryOp>(
self,
binary_op: BinaryOp
) -> ScanOp<Self, BinaryOp, InputItem, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
OutputItem: Default,
[src]
self,
binary_op: BinaryOp
) -> ScanOp<Self, BinaryOp, InputItem, OutputItem> where
Self: Sized,
BinaryOp: Fn(OutputItem, InputItem) -> OutputItem,
OutputItem: Default,
impl<O> Merge for O
[src]
impl<O> Take for O
[src]
impl<O> First for O
[src]
impl<Item, O> FirstOr<Item> for O
[src]
impl<T> SubscribeOn for T
[src]
fn subscribe_on<SD>(self, scheduler: SD) -> SubscribeOnOP<Self, SD> where
Self: Sized,
[src]
Self: Sized,
impl<S> ObserveOn for S
[src]
fn observe_on<SD>(self, scheduler: SD) -> ObserveOnOp<Self, SD> where
Self: Sized,
[src]
Self: Sized,
impl<S> Delay for S
[src]
fn delay(self, dur: Duration) -> DelayOp<Self> where
Self: Sized,
[src]
Self: Sized,
fn delay_at(self, at: Instant) -> DelayOp<Self> where
Self: Sized,
[src]
Self: Sized,
impl<S> ThrottleTime for S
[src]
fn throttle_time(
self,
duration: Duration,
edge: ThrottleEdge
) -> ThrottleTimeOp<Self>
[src]
self,
duration: Duration,
edge: ThrottleEdge
) -> ThrottleTimeOp<Self>
impl<'a, Item, Err, T> Publish<'a, Item, Err> for T
[src]
fn publish(self) -> LocalConnectableObservable<'a, Self, Item, Err>
[src]
impl<T> FilterMap for T
[src]
fn filter_map<F, SourceItem, Item>(
self,
f: F
) -> FilterMapOp<Self, F, SourceItem> where
F: FnMut(SourceItem) -> Option<Item>,
[src]
self,
f: F
) -> FilterMapOp<Self, F, SourceItem> where
F: FnMut(SourceItem) -> Option<Item>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,