Trait fc_rpc_core::EthPubSubApi[][src]

pub trait EthPubSubApi: 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> { ... } }

Eth PUB-SUB rpc interface.

Associated Types

type Metadata: PubSubMetadata[src]

RPC Metadata

Loading content...

Required methods

fn subscribe(
    &self,
    _: Self::Metadata,
    _: Subscriber<Result>,
    _: Kind,
    _: Option<Params>
)
[src]

Subscribe to Eth subscription.

fn unsubscribe(
    &self,
    _: Option<Self::Metadata>,
    _: SubscriptionId
) -> Result<bool>
[src]

Unsubscribe from existing Eth subscription.

Loading content...

Provided methods

fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>[src]

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

Loading content...

Implementors

Loading content...