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