Trait ethers_providers::PubsubClient [−][src]
A transport implementation supporting pub sub subscriptions.
Associated Types
type NotificationStream: Stream<Item = Value>[src]
The type of stream this transport returns
Required methods
fn subscribe<T: Into<U256>>(
&self,
id: T
) -> Result<Self::NotificationStream, Self::Error>[src]
&self,
id: T
) -> Result<Self::NotificationStream, Self::Error>
Add a subscription to this transport
fn unsubscribe<T: Into<U256>>(&self, id: T) -> Result<(), Self::Error>[src]
Remove a subscription from this transport
Implementors
impl PubsubClient for Ws[src]
type NotificationStream = UnboundedReceiver<Value>
fn subscribe<T: Into<U256>>(
&self,
id: T
) -> Result<Self::NotificationStream, ClientError>[src]
&self,
id: T
) -> Result<Self::NotificationStream, ClientError>