Enum mc_query::errors::QueryProtocolError
source · 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)>
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.