Struct jsonrpc_client_transports::TypedSubscriptionStream[][src]

pub struct TypedSubscriptionStream<T> { /* fields omitted */ }

A typed subscription stream.

Implementations

impl<T> TypedSubscriptionStream<T>[src]

pub fn new(stream: SubscriptionStream, returns: &'static str) -> Self[src]

Creates a new TypedSubscriptionStream.

Trait Implementations

impl<T: DeserializeOwned + 'static> Stream for TypedSubscriptionStream<T>[src]

type Item = T

The type of item this stream will yield on success.

type Error = RpcError

The type of error this stream may generate.

Auto Trait Implementations

impl<T> !RefUnwindSafe for TypedSubscriptionStream<T>

impl<T> Send for TypedSubscriptionStream<T> where
    T: Send

impl<T> Sync for TypedSubscriptionStream<T> where
    T: Sync

impl<T> Unpin for TypedSubscriptionStream<T> where
    T: Unpin

impl<T> !UnwindSafe for TypedSubscriptionStream<T>

Blanket Implementations

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

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<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]