[][src]Struct pubnub_hyper::core::Subscription

pub struct Subscription<TRuntime> where
    TRuntime: Runtime
{ /* fields omitted */ }

Inbound PubNub message stream

This is the message stream returned by PubNub::subscribe. The stream yields [Message] items until it is dropped.

Trait Implementations

impl<TRuntime> Debug for Subscription<TRuntime> where
    TRuntime: Runtime + Debug
[src]

impl<TRuntime> Drop for Subscription<TRuntime> where
    TRuntime: Runtime
[src]

Remove listener from the associated SubscribeLoop when the Subscription is dropped.

impl<TRuntime> Stream for Subscription<TRuntime> where
    TRuntime: Runtime
[src]

Subscription is a stream.

type Item = Message

Values yielded by the stream.

Auto Trait Implementations

impl<TRuntime> !RefUnwindSafe for Subscription<TRuntime>

impl<TRuntime> Send for Subscription<TRuntime>

impl<TRuntime> Sync for Subscription<TRuntime>

impl<TRuntime> Unpin for Subscription<TRuntime>

impl<TRuntime> !UnwindSafe for Subscription<TRuntime>

Blanket Implementations

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

impl<T> Any for T where
    T: Any + ?Sized

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

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

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

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

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

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

type Error = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,