Enum minetest_protocol::wire::deser::DeserializeError
source · pub enum DeserializeError {
BadPacketId(CommandDirection, u16),
InvalidValue(String),
InvalidProtocolId(u32),
InvalidChannel(u8),
InvalidPacketKind(u8),
DecompressionFailed(String),
OtherError(String),
Eof,
}
Variants§
BadPacketId(CommandDirection, u16)
InvalidValue(String)
InvalidProtocolId(u32)
InvalidChannel(u8)
InvalidPacketKind(u8)
DecompressionFailed(String)
OtherError(String)
Eof
Trait Implementations§
source§impl Debug for DeserializeError
impl Debug for DeserializeError
source§impl Display for DeserializeError
impl Display for DeserializeError
source§impl Error for DeserializeError
impl Error for DeserializeError
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<Error> for DeserializeError
impl From<Error> for DeserializeError
source§impl From<ParseIntError> for DeserializeError
impl From<ParseIntError> for DeserializeError
source§fn from(other: ParseIntError) -> DeserializeError
fn from(other: ParseIntError) -> DeserializeError
Converts to this type from the input type.
source§impl From<Utf8Error> for DeserializeError
impl From<Utf8Error> for DeserializeError
source§fn from(other: Utf8Error) -> DeserializeError
fn from(other: Utf8Error) -> DeserializeError
Converts to this type from the input type.