pub enum Error {
AddNodeFailed(&'static str),
IncompatibleKeyType,
NetworkStackIdNotConfigured,
ForkMissing(&'static [u8]),
ForkIdDecodeError(Error),
UnreachableDiscovery,
InitFailure(&'static str),
Discv5Error(Error),
ListenConfigMisconfigured,
InvalidEnr(Error),
}Expand description
Errors interfacing with [discv5::Discv5].
Variants§
AddNodeFailed(&'static str)
Failure adding node to [discv5::Discv5].
IncompatibleKeyType
Node record has incompatible key type.
NetworkStackIdNotConfigured
No key used to identify rlpx network is configured.
ForkMissing(&'static [u8])
Missing key used to identify rlpx network.
ForkIdDecodeError(Error)
Failed to decode ForkId rlp value.
UnreachableDiscovery
Peer is unreachable over discovery.
InitFailure(&'static str)
Failed to initialize [discv5::Discv5].
Discv5Error(Error)
An error from underlying [discv5::Discv5] node.
ListenConfigMisconfigured
The ListenConfig has been misconfigured.
InvalidEnr(Error)
Node record can’t be converted to a [discv5::Enr].
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
AddNodeFailed: 24 bytesIncompatibleKeyType: 0 bytesNetworkStackIdNotConfigured: 0 bytesForkMissing: 24 bytesForkIdDecodeError: 32 bytesUnreachableDiscovery: 0 bytesInitFailure: 24 bytesDiscv5Error: 32 bytesListenConfigMisconfigured: 0 bytesInvalidEnr: 32 bytes