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
sourceimpl Clone for UntypedResponseParseError
impl Clone for UntypedResponseParseError
sourcefn clone(&self) -> UntypedResponseParseError
fn clone(&self) -> UntypedResponseParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for UntypedResponseParseError
impl Debug for UntypedResponseParseError
sourceimpl Display for UntypedResponseParseError
impl Display for UntypedResponseParseError
sourceimpl Error for UntypedResponseParseError
impl Error for UntypedResponseParseError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl Hash for UntypedResponseParseError
impl Hash for UntypedResponseParseError
sourceimpl PartialEq<UntypedResponseParseError> for UntypedResponseParseError
impl PartialEq<UntypedResponseParseError> for UntypedResponseParseError
sourcefn eq(&self, other: &UntypedResponseParseError) -> bool
fn eq(&self, other: &UntypedResponseParseError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more