#[non_exhaustive]pub enum RespError {
}Expand description
An error encountered while reading a RESP stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EndOfInput
Reached the end of the stream unexpectedly
InvalidBoolean
Received an invalid boolean
InvalidBlobLength
Received an invalid blob
InvalidDouble
Received an invalid double
InvalidInteger
Received an invalid integer
InvalidMap
Received an invalid map
InvalidSet
Received an invalid set
InvalidVerbatim
Received an invalid verbatim
IO(Error)
Error reading from the stream.
Newline
Simple frame cannot contain a newline.
Version
Unsupported in current version.
RespPrimitive
Expected a primitive, but got a complex value
TooBigInline
Received an inline request that was too big.
Unexpected(u8, u8)
Unexpected byte sequence
UnknownType(u8)
Unknown RESP type
InvalidInline
Invalid inline command
Trait Implementations§
Source§impl Error for RespError
impl Error for RespError
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()
Auto Trait Implementations§
impl Freeze for RespError
impl !RefUnwindSafe for RespError
impl Send for RespError
impl Sync for RespError
impl Unpin for RespError
impl !UnwindSafe for RespError
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