pub enum Error {
Show 19 variants
ListenFailed(String, String),
DialFailed(String),
InboundFailure(String),
OutboundFailure(String),
OutgoingConnection(String),
NoMultiAddrPeerId,
RegisterRunning,
DiscoverRunning,
Io(Error),
AddrParse(AddrParseError),
Hex(FromHexError),
Dial(DialError),
Noise(Error),
Multiaddr(Error),
IdentityParse(ParseError),
IdentityDecoding(DecodingError),
FutureMpscSend(SendError),
FutureOneshotCancel(Canceled),
SwarmNoise(Either<GenError, Error>),
}peer and non-WebAssembly only.Expand description
Errors generated by the peer library.
Variants§
ListenFailed(String, String)
Error generated when listening fails.
DialFailed(String)
Error generated when dialing fails.
InboundFailure(String)
Error generated when an inbound message fails.
OutboundFailure(String)
Error generated when an outbound message fails.
OutgoingConnection(String)
Error generated when an error occurs on an outbound connection.
NoMultiAddrPeerId
Error generated when a multiaddr should contain a peer identifier.
RegisterRunning
Error generated when a register operation is already running.
DiscoverRunning
Error generated when a discover operation is already running.
Io(Error)
Error generated by the standard I/O handling.
AddrParse(AddrParseError)
Error generated attempting to parse a socket address.
Hex(FromHexError)
Error generated by the hex library.
Dial(DialError)
Error generated dialing a peer.
Noise(Error)
Error generated by the noise library.
Multiaddr(Error)
Error generated by the multiaddr library.
IdentityParse(ParseError)
Error generated parsing in the identity library.
IdentityDecoding(DecodingError)
Error generated when by decoding an identity keypair.
FutureMpscSend(SendError)
Error generated when by the futures mpsc sender.
FutureOneshotCancel(Canceled)
Error generated when by the futures oneshot.
SwarmNoise(Either<GenError, Error>)
Error generated configuring the noise protocol for a swarm.