pub enum UntypedResponseParseError {
WrongType,
InvalidId,
InvalidOriginId,
}Expand description
Error encountered when attempting to parse bytes as an untyped response
Variants§
WrongType
When the bytes do not represent a response
InvalidId
When the id is not a valid UTF-8 string
InvalidOriginId
When the origin id is not a valid UTF-8 string
Trait Implementations§
source§impl Clone for UntypedResponseParseError
impl Clone for UntypedResponseParseError
source§fn clone(&self) -> UntypedResponseParseError
fn clone(&self) -> UntypedResponseParseError
Returns a copy 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 UntypedResponseParseError
impl Debug for UntypedResponseParseError
source§impl Display for UntypedResponseParseError
impl Display for UntypedResponseParseError
source§impl Error for UntypedResponseParseError
impl Error for UntypedResponseParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for UntypedResponseParseError
impl Hash for UntypedResponseParseError
source§impl PartialEq<UntypedResponseParseError> for UntypedResponseParseError
impl PartialEq<UntypedResponseParseError> for UntypedResponseParseError
source§fn eq(&self, other: &UntypedResponseParseError) -> bool
fn eq(&self, other: &UntypedResponseParseError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UntypedResponseParseError
impl Eq for UntypedResponseParseError
impl StructuralEq for UntypedResponseParseError
impl StructuralPartialEq for UntypedResponseParseError
Auto Trait Implementations§
impl RefUnwindSafe for UntypedResponseParseError
impl Send for UntypedResponseParseError
impl Sync for UntypedResponseParseError
impl Unpin for UntypedResponseParseError
impl UnwindSafe for UntypedResponseParseError
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