[−][src]Struct rxrust::subscriber::Subscriber
Implements the Observer trait and Subscription trait. While the Observer is the public API for consuming the values of an Observable, all Observers get converted to a Subscriber, in order to provide Subscription capabilities.
Methods
impl<Sub> Subscriber<Sub>
[src]
pub fn new(subscribe: Sub) -> Self
[src]
pub fn clone_subscription(&self) -> SimpleSubscription
[src]
Trait Implementations
impl<Sub> Subscription for Subscriber<Sub>
[src]
fn unsubscribe(&mut self)
[src]
impl<Item, Err, Sub> Observer<Item, Err> for Subscriber<Sub> where
Sub: RxFn(RxValue<&Item, &Err>),
[src]
Sub: RxFn(RxValue<&Item, &Err>),
fn next(&self, v: &Item)
[src]
fn complete(&mut self)
[src]
fn error(&mut self, err: &Err)
[src]
fn is_stopped(&self) -> bool
[src]
impl<Sub> Sync for Subscriber<Sub> where
Sub: Send,
[src]
Sub: Send,
impl<Sub> Send for Subscriber<Sub> where
Sub: Send,
[src]
Sub: Send,
Auto Trait Implementations
impl<Sub> Unpin for Subscriber<Sub> where
Sub: Unpin,
Sub: Unpin,
impl<Sub> UnwindSafe for Subscriber<Sub> where
Sub: UnwindSafe,
Sub: UnwindSafe,
impl<Sub> RefUnwindSafe for Subscriber<Sub> where
Sub: RefUnwindSafe,
Sub: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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,