Enum connection::ConnectionError
source · pub enum ConnectionError {
IoError(Error),
BincodeError(Box<Error>),
ConnectionReset(String),
}
Expand description
The failure modes of a connection
Variants§
IoError(Error)
An error encountered during IO
BincodeError(Box<Error>)
An error encountered during (de)serialization
ConnectionReset(String)
An error encountered when the network connection is dropped
Trait Implementations§
source§impl Debug for ConnectionError
impl Debug for ConnectionError
source§impl Display for ConnectionError
impl Display for ConnectionError
source§impl Error for ConnectionError
impl Error for ConnectionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()