Enum litep2p::error::SubstreamError
source · pub enum SubstreamError {
ConnectionClosed,
YamuxError(ConnectionError),
ReadFailure(Option<SubstreamId>),
WriteFailure(Option<SubstreamId>),
}
Variants§
ConnectionClosed
YamuxError(ConnectionError)
ReadFailure(Option<SubstreamId>)
WriteFailure(Option<SubstreamId>)
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
1.30.0 · 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()
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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