Enum discv5::RequestError
source · pub enum RequestError {
Timeout,
ServiceNotStarted,
SelfRequest,
ChannelFailed(String),
InvalidEnr(&'static str),
InvalidRemoteEnr,
InvalidRemotePacket,
EncryptionFailed(String),
InvalidMultiaddr(&'static str),
EntropyFailure(&'static str),
}
Variants§
Timeout
The request timed out.
ServiceNotStarted
The discovery service has not been started.
SelfRequest
The request was sent to ourselves.
ChannelFailed(String)
The channel to the underlying threads failed.
InvalidEnr(&'static str)
An invalid ENR was provided.
InvalidRemoteEnr
The remote’s ENR is invalid.
InvalidRemotePacket
The remote returned and invalid packet.
EncryptionFailed(String)
Failed attempting to encrypt the request.
InvalidMultiaddr(&'static str)
The multiaddr provided is invalid.
EntropyFailure(&'static str)
Failure generating random numbers during request.
Trait Implementations§
source§impl Clone for RequestError
impl Clone for RequestError
source§fn clone(&self) -> RequestError
fn clone(&self) -> RequestError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl PartialEq for RequestError
impl PartialEq for RequestError
source§fn eq(&self, other: &RequestError) -> bool
fn eq(&self, other: &RequestError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RequestError
impl StructuralPartialEq for RequestError
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
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