Enum packet::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Io(Error), Nul(NulError), SmallBuffer, InvalidPacket, InvalidValue, AlreadyDefined, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
Nul(NulError)
SmallBuffer
The buffer is too small.
InvalidPacket
The packet is invalid.
InvalidValue
The value is invalid for the field.
AlreadyDefined
The value has already been defined.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.