Struct async_jsonrpc_client::WsClient[][src]

pub struct WsClient { /* fields omitted */ }

WebSocket JSON-RPC client

Implementations

impl WsClient[src]

pub async fn new(url: impl Into<String>) -> Result<Self, WsClientError>[src]

Creates a new WebSocket JSON-RPC client.

pub fn builder() -> WsClientBuilder[src]

Creates a WsClientBuilder to configure a WsClient.

This is the same as WsClientBuilder::new().

Trait Implementations

impl BatchTransport for WsClient[src]

impl Clone for WsClient[src]

impl PubsubTransport for WsClient[src]

type NotificationStream = WsSubscription<SubscriptionNotification>

The subscription stream.

impl Transport for WsClient[src]

type Error = WsClientError

The transport error type.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,