Enum discv5::QueryError
source · pub enum QueryError {
ServiceNotStarted,
ChannelFailed(String),
InvalidEnr(String),
EncryptionFailed(String),
InvalidMultiaddr(String),
}
Variants§
ServiceNotStarted
The discv5 service is not currently running.
ChannelFailed(String)
The channel to the underlying threads failed.
InvalidEnr(String)
The ENR provided was invalid.
EncryptionFailed(String)
Encrypting the message failed.
InvalidMultiaddr(String)
The multiaddr provided was invalid.
Trait Implementations§
source§impl Clone for QueryError
impl Clone for QueryError
source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
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 QueryError
impl Debug for QueryError
source§impl Display for QueryError
impl Display for QueryError
source§impl PartialEq for QueryError
impl PartialEq for QueryError
source§fn eq(&self, other: &QueryError) -> bool
fn eq(&self, other: &QueryError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for QueryError
impl StructuralPartialEq for QueryError
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
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