[][src]Trait web3_etz::DuplexTransport

pub trait DuplexTransport: Transport {
    type NotificationStream: Stream<Item = Value, Error = Error>;
    fn subscribe(&self, id: &SubscriptionId) -> Self::NotificationStream;
fn unsubscribe(&self, id: &SubscriptionId); }

A transport implementation supporting pub sub subscriptions.

Associated Types

type NotificationStream: Stream<Item = Value, Error = Error>

The type of stream this transport returns

Loading content...

Required methods

fn subscribe(&self, id: &SubscriptionId) -> Self::NotificationStream

Add a subscription to this transport

fn unsubscribe(&self, id: &SubscriptionId)

Remove a subscription from this transport

Loading content...

Implementors

impl DuplexTransport for Ipc[src]

type NotificationStream = Box<dyn Stream<Item = Value, Error = Error> + Send + 'static>

impl DuplexTransport for WebSocket[src]

type NotificationStream = Box<dyn Stream<Item = Value, Error = Error> + Send + 'static>

impl<X, T: ?Sized> DuplexTransport for X where
    T: DuplexTransport,
    X: Deref<Target = T>,
    X: Debug,
    X: Clone
[src]

Loading content...