Enum packet_stream::ConnectionError
[−]
[src]
pub enum ConnectionError { ClosedEarly, Errored(IoError), }
An error indicating what happend on a connection.
Variants
ClosedEarly
The underlying connection has been closed.
Errored(IoError)
An error occured on reading.
Trait Implementations
impl Debug for ConnectionError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for ConnectionError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Error for ConnectionError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<Error> for ConnectionError
[src]
fn from(err: IoError) -> ConnectionError
[src]
Performs the conversion.