pub enum ResponseError {
}
Variants§
Close
Timeout
NoData
NotFound
PoisonError
NonBorshRequest
NonSerdeRequest
ReqSerialize
ReqDeserialize
RespSerialize
NotificationDeserialize(String)
RespDeserialize(String)
Data(Vec<u8>)
Custom(String)
ReceiveChannelRx
Underlying WebSocket error
ReceiveChannelTx
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>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ResponseError
impl Display for ResponseError
Source§impl EnumExt for ResponseError
impl EnumExt 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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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
Converts to this type from the input type.
Source§impl From<String> for ResponseError
impl From<String> for ResponseError
Source§impl PartialEq for ResponseError
impl PartialEq for ResponseError
Source§impl Serialize for ResponseError
impl Serialize for ResponseError
impl Eq for ResponseError
impl StructuralPartialEq for ResponseError
Auto Trait Implementations§
impl Freeze for ResponseError
impl RefUnwindSafe for ResponseError
impl Send for ResponseError
impl Sync for ResponseError
impl Unpin for ResponseError
impl UnwindSafe for ResponseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more