pub enum UntypedRequestParseError {
WrongType,
InvalidHeaderKey,
InvalidHeader,
InvalidIdKey,
InvalidId,
InvalidPayloadKey,
}
Expand description
Error encountered when attempting to parse bytes as an untyped request
Variants§
WrongType
When the bytes do not represent a request
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
InvalidPayloadKey
When the key for the payload is wrong
Trait Implementations§
Source§impl Clone for UntypedRequestParseError
impl Clone for UntypedRequestParseError
Source§fn clone(&self) -> UntypedRequestParseError
fn clone(&self) -> UntypedRequestParseError
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 UntypedRequestParseError
impl Debug for UntypedRequestParseError
Source§impl Display for UntypedRequestParseError
impl Display for UntypedRequestParseError
Source§impl Error for UntypedRequestParseError
impl Error for UntypedRequestParseError
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 UntypedRequestParseError
impl Hash for UntypedRequestParseError
Source§impl PartialEq for UntypedRequestParseError
impl PartialEq for UntypedRequestParseError
impl Copy for UntypedRequestParseError
impl Eq for UntypedRequestParseError
impl StructuralPartialEq for UntypedRequestParseError
Auto Trait Implementations§
impl Freeze for UntypedRequestParseError
impl RefUnwindSafe for UntypedRequestParseError
impl Send for UntypedRequestParseError
impl Sync for UntypedRequestParseError
impl Unpin for UntypedRequestParseError
impl UnwindSafe for UntypedRequestParseError
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