Trait ethers_providers::PubsubClient [−][src]
pub trait PubsubClient: JsonRpcClient { type NotificationStream: Stream<Item = Value>; fn subscribe<T: Into<U256>>(
&self,
id: T
) -> Result<Self::NotificationStream, Self::Error>; fn unsubscribe<T: Into<U256>>(&self, id: T) -> Result<(), Self::Error>; }
Expand description
A transport implementation supporting pub sub subscriptions.
Associated Types
type NotificationStream: Stream<Item = Value>
type NotificationStream: Stream<Item = Value>
The type of stream this transport returns
Required methods
Add a subscription to this transport