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

pub struct WebSocket { /* fields omitted */ }

WebSocket transport

Methods

impl WebSocket
[src]

Create new WebSocket transport with separate event loop. NOTE: Dropping event loop handle will stop the transport layer!

Create new WebSocket transport within existing Event Loop.

Trait Implementations

impl Debug for WebSocket
[src]

Formats the value using the given formatter. Read more

impl Clone for WebSocket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Transport for WebSocket
[src]

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

Prepare serializable RPC call for given method with parameters.

Execute prepared RPC call.

Execute remote method with given parameters.

impl BatchTransport for WebSocket
[src]

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

Sends a batch of prepared RPC calls.

impl DuplexTransport for WebSocket
[src]

The type of stream this transport returns

Add a subscription to this transport

Remove a subscription from this transport

Auto Trait Implementations

impl Send for WebSocket

impl Sync for WebSocket