pub enum Error {
Show 38 variants
PeerDoesntExist(PeerId),
PeerAlreadyExists(PeerId),
ProtocolNotSupported(String),
AddressError(AddressError),
ParseError(ParseError),
IoError(ErrorKind),
NegotiationError(NegotiationError),
SubstreamError(SubstreamError),
NotificationError(NotificationError),
EssentialTaskClosed,
Unknown,
CannotDialSelf(Multiaddr),
TransportNotSupported(Multiaddr),
YamuxError(Direction, ConnectionError),
NotSupported(String),
Other(String),
ProtocolAlreadyExists(ProtocolName),
Timeout,
InvalidState,
DnsAddressResolutionFailed,
TransportError(String),
InvalidData,
InputRejected,
WebSocket(Error),
InsufficientPeers,
SubstreamDoesntExist,
Disconnected,
ChannelDoesntExist,
TriedToDialSelf,
AlreadyConnected,
NoAddressAvailable(PeerId),
ConnectionClosed,
InvalidCertificate,
PeerIdMismatch(PeerId, PeerId),
ChannelClogged,
ConnectionDoesntExist(ConnectionId),
ConnectionLimit(ConnectionLimitsError),
ImmediateDialError(ImmediateDialError),
}
Variants§
PeerDoesntExist(PeerId)
PeerAlreadyExists(PeerId)
ProtocolNotSupported(String)
AddressError(AddressError)
ParseError(ParseError)
IoError(ErrorKind)
NegotiationError(NegotiationError)
SubstreamError(SubstreamError)
NotificationError(NotificationError)
EssentialTaskClosed
Unknown
CannotDialSelf(Multiaddr)
TransportNotSupported(Multiaddr)
YamuxError(Direction, ConnectionError)
NotSupported(String)
Other(String)
ProtocolAlreadyExists(ProtocolName)
Timeout
InvalidState
DnsAddressResolutionFailed
TransportError(String)
InvalidData
InputRejected
WebSocket(Error)
InsufficientPeers
SubstreamDoesntExist
Disconnected
ChannelDoesntExist
TriedToDialSelf
AlreadyConnected
NoAddressAvailable(PeerId)
ConnectionClosed
InvalidCertificate
PeerIdMismatch(PeerId, PeerId)
ChannelClogged
ConnectionDoesntExist(ConnectionId)
ConnectionLimit(ConnectionLimitsError)
ImmediateDialError(ImmediateDialError)
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<AddressError> for Error
impl From<AddressError> for Error
source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
source§impl From<ConnectionLimitsError> for Error
impl From<ConnectionLimitsError> for Error
source§fn from(error: ConnectionLimitsError) -> Self
fn from(error: ConnectionLimitsError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<EncodeError> for Error
impl From<EncodeError> for Error
source§fn from(error: EncodeError) -> Self
fn from(error: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<ImmediateDialError> for Error
impl From<ImmediateDialError> for Error
source§fn from(source: ImmediateDialError) -> Self
fn from(source: ImmediateDialError) -> Self
Converts to this type from the input type.
source§impl From<Multihash<64>> for Error
impl From<Multihash<64>> for Error
source§fn from(hash: MultihashGeneric<64>) -> Self
fn from(hash: MultihashGeneric<64>) -> Self
Converts to this type from the input type.
source§impl From<NegotiationError> for Error
impl From<NegotiationError> for Error
source§fn from(source: NegotiationError) -> Self
fn from(source: NegotiationError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<SubstreamError> for Error
impl From<SubstreamError> for Error
source§fn from(source: SubstreamError) -> Self
fn from(source: SubstreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more