Enum flep_protocol::errors::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Io(Error), InvalidUtf8(FromUtf8Error), NotLoggedIn, InvalidCommand(String), InvalidArgument(String), InvalidCommandSequence(String), UnimplementedCommand(String), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
InvalidUtf8(FromUtf8Error)
NotLoggedIn
InvalidCommand(String)
InvalidArgument(String)
InvalidCommandSequence(String)
UnimplementedCommand(String)
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl AsReplyCode for ErrorKind
[src]
fn as_reply_code(&self) -> Code
Gets the reply code for the object.