pub trait EthPubSubApiClient: SubscriptionClientT {
// Provided method
fn sub<'life0, 'async_trait>(
&'life0 self,
kind: PubSubKind,
params: Option<PubSubParams>,
) -> Pin<Box<dyn Future<Output = Result<Subscription<PubSubResult>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the EthPubSubApi
RPC API.
Provided Methods§
Sourcefn sub<'life0, 'async_trait>(
&'life0 self,
kind: PubSubKind,
params: Option<PubSubParams>,
) -> Pin<Box<dyn Future<Output = Result<Subscription<PubSubResult>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn sub<'life0, 'async_trait>(
&'life0 self,
kind: PubSubKind,
params: Option<PubSubParams>,
) -> Pin<Box<dyn Future<Output = Result<Subscription<PubSubResult>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Create an ethereum subscription for the given params
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.