[][src]Struct jsonrpc_pubsub::typed::Sink

pub struct Sink<T, E = Error> { /* fields omitted */ }

Subscriber sink.

Implementations

impl<T: Serialize, E: Serialize> Sink<T, E>[src]

pub fn notify(&self, val: Result<T, E>) -> SinkResult[src]

Sends a notification to the subscriber.

Trait Implementations

impl<T: Clone, E: Clone> Clone for Sink<T, E>[src]

impl<T: Debug, E: Debug> Debug for Sink<T, E>[src]

impl<T: Serialize, E: Serialize> Sink for Sink<T, E>[src]

type SinkItem = Result<T, E>

The type of value that the sink accepts.

type SinkError = TransportError

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl<T, E = Error> !RefUnwindSafe for Sink<T, E>

impl<T, E> Send for Sink<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for Sink<T, E> where
    E: Sync,
    T: Sync

impl<T, E> Unpin for Sink<T, E> where
    E: Unpin,
    T: Unpin

impl<T, E = Error> !UnwindSafe for Sink<T, E>

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> 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 = 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>,