pub struct WsClient { /* private fields */ }
Expand description
WebSocket JSON-RPC client
Implementations§
Trait Implementations§
Source§impl BatchTransport for WsClient
impl BatchTransport for WsClient
Source§impl PubsubTransport for WsClient
impl PubsubTransport for WsClient
Source§type NotificationStream = WsSubscription<SubscriptionNotification>
type NotificationStream = WsSubscription<SubscriptionNotification>
The subscription stream.
Source§fn subscribe<'life0, 'async_trait, M>(
&'life0 self,
subscribe_method: M,
params: Option<Params>,
) -> Pin<Box<dyn Future<Output = Result<(Id, Self::NotificationStream), <Self as Transport>::Error>> + Send + 'async_trait>>
fn subscribe<'life0, 'async_trait, M>( &'life0 self, subscribe_method: M, params: Option<Params>, ) -> Pin<Box<dyn Future<Output = Result<(Id, Self::NotificationStream), <Self as Transport>::Error>> + Send + 'async_trait>>
Add a subscription to this transport. Read more
Source§impl Transport for WsClient
impl Transport for WsClient
Auto Trait Implementations§
impl Freeze for WsClient
impl !RefUnwindSafe for WsClient
impl Send for WsClient
impl Sync for WsClient
impl Unpin for WsClient
impl !UnwindSafe for WsClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more