pub enum QueryProtocolError {
InvalidPacketType,
UnexpectedPacketType,
SessionIdMismatch,
InvalidChallengeToken,
CannotParseInt,
InvalidUtf8,
InvalidKeyValueSection,
}
Expand description
An error from the Query protocol.
Variants§
InvalidPacketType
Received invalid packet type. Valid types are 9 for handshake, 0 for stat
UnexpectedPacketType
Unexpected packet type.
SessionIdMismatch
Mismatch with the generated session ID.
InvalidChallengeToken
Received invalid challenge token from server.
CannotParseInt
Invalid integer. Did not receive valid characters to parse as an integer in the string
InvalidUtf8
Invalid UTF8. Did not receive valid UTF from the server when a string was expected
InvalidKeyValueSection
Invalid key/value section. Expecting something like this
Trait Implementations§
Source§impl Debug for QueryProtocolError
impl Debug for QueryProtocolError
Source§impl Display for QueryProtocolError
impl Display for QueryProtocolError
Source§impl Error for QueryProtocolError
impl Error for QueryProtocolError
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 From<QueryProtocolError> for Error
impl From<QueryProtocolError> for Error
Source§fn from(err: QueryProtocolError) -> Self
fn from(err: QueryProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryProtocolError
impl RefUnwindSafe for QueryProtocolError
impl Send for QueryProtocolError
impl Sync for QueryProtocolError
impl Unpin for QueryProtocolError
impl UnwindSafe for QueryProtocolError
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