Struct web3::transports::http::Http[][src]

pub struct Http { /* fields omitted */ }

HTTP Transport (synchronous)

Methods

impl Http
[src]

Create new HTTP transport with given URL and spawn an event loop in a separate thread. NOTE: Dropping event loop handle will stop the transport layer!

Create new HTTP transport with given URL and spawn an event loop in a separate thread. You can set a maximal number of parallel requests using the second parameter. NOTE: Dropping event loop handle will stop the transport layer!

Create new HTTP transport with given URL and existing event loop handle.

Trait Implementations

impl Debug for Http
[src]

Formats the value using the given formatter. Read more

impl Clone for Http
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Transport for Http
[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 Http
[src]

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

Sends a batch of prepared RPC calls.

Auto Trait Implementations

impl Send for Http

impl Sync for Http