Trait ethers_providers::PubsubClient
source · pub trait PubsubClient: JsonRpcClient {
type NotificationStream: Stream<Item = Box<RawValue>> + Send + Unpin;
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.