Enum server::net::Error
[−]
[src]
pub enum Error { Io(Error), UnexpectedPkg, UnknownCmd, Encode(EncodingError), Decode(DecodingError), UnEoq(ParseError), }
Collection of possible errors while communicating with the client.
Variants
Io | |
UnexpectedPkg | |
UnknownCmd | |
Encode | |
Decode | |
UnEoq |
Trait Implementations
impl Display for Error
Implement display for description of Error
impl Error for Error
Implement description for this Error enum
fn description(&self) -> &str
fn cause(&self) -> Option<&Error>
impl From<Error> for Error
Implement the conversion from io::Error to NetworkError
impl From<EncodingError> for Error
Implement the conversion from EncodingError to NetworkError
fn from(err: EncodingError) -> Error
impl From<DecodingError> for Error
Implement the conversion from DecodingError to NetworkError
fn from(err: DecodingError) -> Error
impl From<ParseError> for Error
Implement the conversion from ParseError to NetworkError