pub enum Error {
NetworkListeningError(String),
NetworkLockError(String),
ConnectionsFetchError(String),
NetworkConnectionError(String),
BincodeError(Error),
AddPeerError(String),
LoggingError(SetLoggerError),
}
Expand description
Error types
Variants§
NetworkListeningError(String)
Error on calling message_io::Network::listen()
NetworkLockError(String)
Error on acquiring a mutex on the network of nodes
ConnectionsFetchError(String)
Error on fetching peer list
NetworkConnectionError(String)
Error on connecting to the network
BincodeError(Error)
(De)serialization errors
AddPeerError(String)
Error on adding a peer to the peer list
LoggingError(SetLoggerError)
Error on logging
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<SetLoggerError> for Error
impl From<SetLoggerError> for Error
source§fn from(value: SetLoggerError) -> Self
fn from(value: SetLoggerError) -> Self
Converts to this type from the input type.