Enum litep2p::error::SubstreamError
source · pub enum SubstreamError {
ConnectionClosed,
ChannelClogged,
PeerDoesNotExist(PeerId),
IoError(ErrorKind),
YamuxError(ConnectionError, Direction),
ReadFailure(Option<SubstreamId>),
WriteFailure(Option<SubstreamId>),
NegotiationError(NegotiationError),
}
Variants§
ConnectionClosed
ChannelClogged
PeerDoesNotExist(PeerId)
IoError(ErrorKind)
YamuxError(ConnectionError, Direction)
ReadFailure(Option<SubstreamId>)
WriteFailure(Option<SubstreamId>)
NegotiationError(NegotiationError)
Trait Implementations§
source§impl Debug for SubstreamError
impl Debug for SubstreamError
source§impl Display for SubstreamError
impl Display for SubstreamError
source§impl Error for SubstreamError
impl Error for SubstreamError
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 SubstreamError
impl From<Error> for SubstreamError
source§fn from(error: Error) -> SubstreamError
fn from(error: Error) -> SubstreamError
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<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.
source§impl From<SubstreamError> for RejectReason
impl From<SubstreamError> for RejectReason
source§fn from(error: SubstreamError) -> Self
fn from(error: SubstreamError) -> Self
Converts to this type from the input type.
source§impl PartialEq for SubstreamError
impl PartialEq for SubstreamError
source§fn eq(&self, other: &SubstreamError) -> bool
fn eq(&self, other: &SubstreamError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubstreamError
Auto Trait Implementations§
impl !Freeze for SubstreamError
impl !RefUnwindSafe for SubstreamError
impl Send for SubstreamError
impl Sync for SubstreamError
impl Unpin for SubstreamError
impl !UnwindSafe for SubstreamError
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