Enum litep2p::error::NegotiationError
source · pub enum NegotiationError {
MultistreamSelectError(NegotiationError),
SnowError(Error),
PeerIdMissing,
Timeout,
ParseError(ParseError),
IoError(ErrorKind),
StateMismatch,
PeerIdMismatch(PeerId, PeerId),
WebSocket(Error),
}
Expand description
Error during the negotiation phase.
Variants§
MultistreamSelectError(NegotiationError)
Error occurred during the multistream-select phase of the negotiation.
SnowError(Error)
Error occurred during the Noise handshake negotiation.
PeerIdMissing
The peer ID was not provided by the noise handshake.
Timeout
The negotiation operation timed out.
ParseError(ParseError)
The message provided over the wire has an invalid format or is unsupported.
IoError(ErrorKind)
An I/O error occurred during the negotiation process.
StateMismatch
Expected a different state during the negotiation process.
PeerIdMismatch(PeerId, PeerId)
The noise handshake provided a different peer ID than the one expected in the dialing address.
WebSocket(Error)
Error specific to the WebSocket transport.
Trait Implementations§
source§impl Debug for NegotiationError
impl Debug for NegotiationError
source§impl Display for NegotiationError
impl Display for NegotiationError
source§impl Error for NegotiationError
impl Error for NegotiationError
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<Error> for NegotiationError
impl From<Error> for NegotiationError
source§impl From<Error> for NegotiationError
impl From<Error> for NegotiationError
source§impl From<Error> for NegotiationError
impl From<Error> for NegotiationError
source§impl From<NegotiationError> for DialError
impl From<NegotiationError> for DialError
source§fn from(source: NegotiationError) -> Self
fn from(source: NegotiationError) -> 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<NegotiationError> for SubstreamError
impl From<NegotiationError> for SubstreamError
source§fn from(source: NegotiationError) -> Self
fn from(source: NegotiationError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for NegotiationError
impl From<ParseError> for NegotiationError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for NegotiationError
impl !RefUnwindSafe for NegotiationError
impl Send for NegotiationError
impl Sync for NegotiationError
impl Unpin for NegotiationError
impl !UnwindSafe for NegotiationError
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