pub enum ResponseError {
}Expand description
Errors returned to the caller as part of an IPC response.
Variants§
Close
The connection was closed before a response was received.
Timeout
The RPC call timed out before completing.
NoData
The response contained no data.
NotFound
The requested IPC method handler was not found.
PoisonError
A mutex/lock was poisoned while handling the request.
NonBorshRequest
The request payload was not Borsh-encoded as expected.
NonSerdeRequest
The request payload was not Serde-encoded as expected.
ReqSerialize
The request could not be serialized.
ReqDeserialize
The request could not be deserialized.
RespSerialize
The response could not be serialized.
NotificationDeserialize(String)
A notification payload could not be deserialized.
RespDeserialize(String)
The response could not be deserialized.
Data(Vec<u8>)
Raw response data carried alongside the error.
Custom(String)
A custom, free-form error message.
ReceiveChannelRx
Underlying WebSocket error
ReceiveChannelTx
Failed to forward a message into the receiver channel.
Trait Implementations§
Source§impl BorshDeserialize for ResponseError
impl BorshDeserialize for ResponseError
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ResponseError
impl BorshSerialize for ResponseError
Source§impl Clone for ResponseError
impl Clone for ResponseError
Source§fn clone(&self) -> ResponseError
fn clone(&self) -> ResponseError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseError
impl Debug for ResponseError
Source§impl<'de> Deserialize<'de> for ResponseError
impl<'de> Deserialize<'de> for ResponseError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ResponseError
impl Display for ResponseError
Source§impl EnumExt for ResponseError
impl EnumExt for ResponseError
impl Eq for ResponseError
Source§impl Error for ResponseError
impl Error for ResponseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<&str> for ResponseError
impl From<&str> for ResponseError
Source§impl From<Error> for ResponseError
impl From<Error> for ResponseError
Source§impl From<ResponseError> for Error
impl From<ResponseError> for Error
Source§fn from(source: ResponseError) -> Self
fn from(source: ResponseError) -> Self
Source§impl From<String> for ResponseError
impl From<String> for ResponseError
Source§impl PartialEq for ResponseError
impl PartialEq for ResponseError
Source§fn eq(&self, other: &ResponseError) -> bool
fn eq(&self, other: &ResponseError) -> bool
self and other values to be equal, and is used by ==.