pub trait EthPubSub: Sized + Send + Sync + 'static {
    type Metadata: PubSubMetadata;
    fn subscribe(
        &self,
        _: Self::Metadata,
        _: Subscriber<Result>,
        _: Kind,
        _: Option<Params>
    );
fn unsubscribe(
        &self,
        _: Option<Self::Metadata>,
        _: SubscriptionId
    ) -> Result<bool>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }
Expand description

Eth PUB-SUB rpc interface.

Associated Types

RPC Metadata

Required methods

Subscribe to Eth subscription.

Unsubscribe from existing Eth subscription.

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors