Enum lumina_node::p2p::P2pError
source · pub enum P2pError {
GossipsubInit(String),
GossipsubSubscribe(SubscriptionError),
Transport(TransportError<Error>),
InitNoise(String),
Dial(DialError),
WorkerDied,
ChannelClosedUnexpectedly,
NoConnectedPeers,
HeaderEx(HeaderExError),
BootnodeAddrsWithoutPeerId(Vec<Multiaddr>),
}Expand description
Representation of all the errors that can occur when interacting with P2p.
Variants§
GossipsubInit(String)
Failed to initialize gossipsub behaviour.
GossipsubSubscribe(SubscriptionError)
Failed to subscribe to a topic on gossibsub.
Transport(TransportError<Error>)
An error propagated from the libp2p transport.
InitNoise(String)
Failed to initialize noise protocol.
Dial(DialError)
Error occured when trying to establish or upgrade an outbound connection.
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.
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)>
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 SyncerError
impl From<P2pError> for SyncerError
Auto Trait Implementations§
impl !RefUnwindSafe for P2pError
impl Send for P2pError
impl Sync for P2pError
impl Unpin for P2pError
impl !UnwindSafe for P2pError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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