Enum lumina_node::node::P2pError
source · pub enum P2pError {
GossipsubInit(String),
TlsInit(String),
NoiseInit(String),
WorkerDied,
ChannelClosedUnexpectedly,
NoConnectedPeers,
HeaderEx(HeaderExError),
BootnodeAddrsWithoutPeerId(Vec<Multiaddr>),
Bitswap(Error),
ProtoDecodeFailed(Error),
Cid(Error),
BitswapQueryTimeout,
}
Expand description
Representation of all the errors that can occur in P2p
component.
Variants§
GossipsubInit(String)
Failed to initialize gossipsub behaviour.
TlsInit(String)
Failed to initialize TLS.
NoiseInit(String)
Failed to initialize noise protocol.
WorkerDied
The worker has died.
ChannelClosedUnexpectedly
Channel closed unexpectedly.
NoConnectedPeers
Not connected to any peers.
HeaderEx(HeaderExError)
An error propagated from the header-ex
.
BootnodeAddrsWithoutPeerId(Vec<Multiaddr>)
Bootnode address is missing its peer ID.
Bitswap(Error)
An error propagated from beetswap::Behaviour
.
ProtoDecodeFailed(Error)
ProtoBuf message failed to be decoded.
Cid(Error)
An error propagated from celestia_types
that is related to Cid
.
BitswapQueryTimeout
Bitswap query timed out.
Trait Implementations§
source§impl Error for P2pError
impl Error for P2pError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<HeaderExError> for P2pError
impl From<HeaderExError> for P2pError
source§fn from(source: HeaderExError) -> Self
fn from(source: HeaderExError) -> Self
Converts to this type from the input type.
source§impl From<P2pError> for DaserError
impl From<P2pError> for DaserError
source§impl From<P2pError> for SyncerError
impl From<P2pError> for SyncerError
Auto Trait Implementations§
impl Freeze for P2pError
impl !RefUnwindSafe for P2pError
impl Send for P2pError
impl Sync for P2pError
impl Unpin for P2pError
impl !UnwindSafe for P2pError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more