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

pub struct Http { /* fields omitted */ }

HTTP Transport (synchronous)

Implementations

impl Http[src]

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

Create new HTTP transport connecting to given URL.

Trait Implementations

impl BatchTransport for Http[src]

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

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

impl Clone for Http[src]

impl Debug for Http[src]

impl Transport for Http[src]

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

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

Auto Trait Implementations

impl !RefUnwindSafe for Http

impl Send for Http

impl Sync for Http

impl Unpin for Http

impl !UnwindSafe for Http

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