Enum network::peer_manager::PeerManagerError
source · pub enum PeerManagerError {
Error(Error),
IoError(Error),
TransportError(Error),
ShuttingDownPeer,
NotConnected(PeerId),
AlreadyConnected(NetworkAddress),
OneshotSenderDropped,
MpscSendError(SendError),
BcsError(Error),
WireReadError(ReadError),
WireWriteError(WriteError),
}
Variants§
Error(Error)
IoError(Error)
TransportError(Error)
ShuttingDownPeer
NotConnected(PeerId)
AlreadyConnected(NetworkAddress)
OneshotSenderDropped
MpscSendError(SendError)
BcsError(Error)
WireReadError(ReadError)
WireWriteError(WriteError)
Implementations§
source§impl PeerManagerError
impl PeerManagerError
pub fn from_transport_error<E: Into<Error>>(error: E) -> Self
Trait Implementations§
source§impl Debug for PeerManagerError
impl Debug for PeerManagerError
source§impl Display for PeerManagerError
impl Display for PeerManagerError
source§impl Error for PeerManagerError
impl Error for PeerManagerError
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<Canceled> for PeerManagerError
impl From<Canceled> for PeerManagerError
source§impl From<Error> for PeerManagerError
impl From<Error> for PeerManagerError
source§impl From<Error> for PeerManagerError
impl From<Error> for PeerManagerError
source§impl From<Error> for PeerManagerError
impl From<Error> for PeerManagerError
source§impl From<PeerManagerError> for NetworkError
impl From<PeerManagerError> for NetworkError
source§fn from(err: PeerManagerError) -> NetworkError
fn from(err: PeerManagerError) -> NetworkError
Converts to this type from the input type.
source§impl From<PeerManagerError> for RpcError
impl From<PeerManagerError> for RpcError
source§fn from(err: PeerManagerError) -> Self
fn from(err: PeerManagerError) -> Self
Converts to this type from the input type.
source§impl From<ReadError> for PeerManagerError
impl From<ReadError> for PeerManagerError
source§impl From<SendError> for PeerManagerError
impl From<SendError> for PeerManagerError
source§impl From<WriteError> for PeerManagerError
impl From<WriteError> for PeerManagerError
source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.