[][src]Struct web3::transports::ws::WebSocket

pub struct WebSocket { /* fields omitted */ }

WebSocket transport

Implementations

impl WebSocket[src]

pub async fn new<'_>(url: &'_ str) -> Result<Self>[src]

Create new WebSocket transport.

Trait Implementations

impl BatchTransport for WebSocket[src]

type Batch = Response<Vec<Result<Value>>, fn(_: Result<Vec<Result<Value>>>) -> Result<Vec<Result<Value>>>>

The type of future this transport returns when a call is made.

impl Clone for WebSocket[src]

impl Debug for WebSocket[src]

impl DuplexTransport for WebSocket[src]

type NotificationStream = UnboundedReceiver<Value>

The type of stream this transport returns

impl Transport for WebSocket[src]

type Out = Response<Value, fn(_: Result<Vec<Result<Value>>>) -> Result<Value>>

The type of future this transport returns when a call is made.

Auto Trait Implementations

impl !RefUnwindSafe for WebSocket

impl Send for WebSocket

impl Sync for WebSocket

impl Unpin for WebSocket

impl !UnwindSafe for WebSocket

Blanket Implementations

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

impl<X, T> BatchTransport for X where
    T: BatchTransport + ?Sized,
    X: Deref<Target = T> + Debug + Clone
[src]

type Batch = <T as BatchTransport>::Batch

The type of future this transport returns when a call is made.

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

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

impl<X, T> DuplexTransport for X where
    T: DuplexTransport + ?Sized,
    X: Deref<Target = T> + Debug + Clone
[src]

type NotificationStream = <T as DuplexTransport>::NotificationStream

The type of stream this transport returns

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<X, T> Transport for X where
    T: Transport + ?Sized,
    X: Deref<Target = T> + Debug + Clone
[src]

type Out = <T as Transport>::Out

The type of future this transport returns when a call is made.

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>,