alloy_transport

Type Alias TransportResult

Source
pub type TransportResult<T, ErrResp = Box<RawValue>> = RpcResult<T, TransportErrorKind, ErrResp>;
Expand description

A transport result is a Result containing a TransportError.

Aliased Type§

enum TransportResult<T, ErrResp = Box<RawValue>> {
    Ok(T),
    Err(RpcError<TransportErrorKind, ErrResp>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(RpcError<TransportErrorKind, ErrResp>)

Contains the error value