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

fn fmt(&self, f: &mut Formatter) -> Result

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

fn from(err: Error) -> Error

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

fn from(err: ParseError) -> Error

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result