pub enum UntypedResponseParseError {
WrongType,
InvalidHeaderKey,
InvalidHeader,
InvalidIdKey,
InvalidId,
InvalidOriginIdKey,
InvalidOriginId,
InvalidPayloadKey,
}
Expand description
Error encountered when attempting to parse bytes as an untyped response
Variants§
WrongType
When the bytes do not represent a response
InvalidHeaderKey
When a header should be present, but the key is wrong
InvalidHeader
When a header should be present, but the header bytes are wrong
InvalidIdKey
When the key for the id is wrong
InvalidId
When the id is not a valid UTF-8 string
InvalidOriginIdKey
When the key for the origin id is wrong
InvalidOriginId
When the origin id is not a valid UTF-8 string
InvalidPayloadKey
When the key for the payload is wrong
Trait Implementations§
Source§impl Clone for UntypedResponseParseError
impl Clone for UntypedResponseParseError
Source§fn clone(&self) -> UntypedResponseParseError
fn clone(&self) -> UntypedResponseParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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)>
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 Hash for UntypedResponseParseError
impl Hash for UntypedResponseParseError
Source§impl PartialEq for UntypedResponseParseError
impl PartialEq for UntypedResponseParseError
Source§fn eq(&self, other: &UntypedResponseParseError) -> bool
fn eq(&self, other: &UntypedResponseParseError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for UntypedResponseParseError
impl Eq for UntypedResponseParseError
impl StructuralPartialEq for UntypedResponseParseError
Auto Trait Implementations§
impl Freeze for UntypedResponseParseError
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