Trait web3::DuplexTransport[][src]

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

The type of stream this transport returns

Required Methods

Add a subscription to this transport

Remove a subscription from this transport

Implementors