pub enum ResponseParserError<'a> {
MissingProperty(&'a str),
UnexpectedPropertyType(&'a str, &'a str),
UnexpectedProperty(&'a str),
InvalidProperty(&'a str, &'a str),
SyntaxError(u64, &'a str),
UnexpectedEOF,
}
Variants§
MissingProperty(&'a str)
A property was expected to be present in the response, but was not found.
UnexpectedPropertyType(&'a str, &'a str)
An expected property was found in the response, but its encoding was not as expected. (e.g. binary instead of text)
UnexpectedProperty(&'a str)
A property was found in the response that was not expected.
InvalidProperty(&'a str, &'a str)
The property value is parsable, but the value is invalid or nonsensical.
SyntaxError(u64, &'a str)
Could not parse the response due to a syntax error.
UnexpectedEOF
Response ended early, while more properties were expected.
Trait Implementations§
Source§impl<'a> Clone for ResponseParserError<'a>
impl<'a> Clone for ResponseParserError<'a>
Source§fn clone(&self) -> ResponseParserError<'a>
fn clone(&self) -> ResponseParserError<'a>
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<'a> Debug for ResponseParserError<'a>
impl<'a> Debug for ResponseParserError<'a>
Source§impl<'a> PartialEq for ResponseParserError<'a>
impl<'a> PartialEq for ResponseParserError<'a>
impl<'a> StructuralPartialEq for ResponseParserError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResponseParserError<'a>
impl<'a> RefUnwindSafe for ResponseParserError<'a>
impl<'a> Send for ResponseParserError<'a>
impl<'a> Sync for ResponseParserError<'a>
impl<'a> Unpin for ResponseParserError<'a>
impl<'a> UnwindSafe for ResponseParserError<'a>
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