[][src]Struct rxrust::observable::Observable

pub struct Observable<F>(_);

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]

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 nexted, 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]

type Output = ForkObservable<F>

impl<F> IntoShared for Observable<F> where
    F: Send + Sync + 'static, 
[src]

type Shared = SharedOp<Self>

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]

type Unsub = U

A type implementing SubscriptionLike

impl<F: Clone> Clone for Observable<F>[src]

Auto Trait Implementations

impl<F> Send for Observable<F> where
    F: Send

impl<F> Sync for Observable<F> where
    F: Sync

impl<F> Unpin for Observable<F> where
    F: Unpin

impl<F> UnwindSafe for Observable<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for Observable<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<Item, O> Last<Item> for O[src]

impl<O, OutputItem> Reduce<OutputItem> for O[src]

impl<O, Item> MinMax<Item> for O[src]

impl<O, Item> Sum<Item> for O[src]

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]

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]

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]

impl<S> ObserveOn for S[src]

impl<S> Delay for S[src]

impl<S> ThrottleTime for S[src]

impl<'a, Item, Err, T> Publish<'a, Item, Err> for T[src]

impl<T> FilterMap for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]