Enum ethers::providers::WsClientError [−][src]
pub enum WsClientError {
JsonError(Error),
JsonRpcError(JsonRpcError),
UnexpectedBinary(Vec<u8, Global>),
TungsteniteError(Error),
ChannelError(String),
Canceled(Canceled),
WsClosed(CloseFrame<'static>),
UnexpectedClose,
}
Expand description
Error thrown when sending a WS message
Variants
JsonError(Error)
Tuple Fields
0: Error
Thrown if deserialization failed
JsonRpcError(JsonRpcError)
Thrown if the response could not be parsed
UnexpectedBinary(Vec<u8, Global>)
Thrown if the websocket responds with binary data
TungsteniteError(Error)
Thrown if there’s an error over the WS connection
ChannelError(String)
Tuple Fields
0: String
Canceled(Canceled)
WsClosed(CloseFrame<'static>)
Remote server sent a Close message
UnexpectedClose
Something caused the websocket to close
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more