pub enum KademliaHandlerQueryErr {
Upgrade(ProtocolsHandlerUpgrErr<Error>),
UnexpectedMessage,
Io(Error),
}
Expand description
Error that can happen when requesting an RPC query.
Variants
Upgrade(ProtocolsHandlerUpgrErr<Error>)
Error while trying to perform the query.
UnexpectedMessage
Received an answer that doesn’t correspond to the request.
Io(Error)
I/O error in the substream.
Trait Implementations
sourceimpl Debug for KademliaHandlerQueryErr
impl Debug for KademliaHandlerQueryErr
sourceimpl Display for KademliaHandlerQueryErr
impl Display for KademliaHandlerQueryErr
sourceimpl Error for KademliaHandlerQueryErr
impl Error for KademliaHandlerQueryErr
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ProtocolsHandlerUpgrErr<Error>> for KademliaHandlerQueryErr
impl From<ProtocolsHandlerUpgrErr<Error>> for KademliaHandlerQueryErr
sourcefn from(err: ProtocolsHandlerUpgrErr<Error>) -> Self
fn from(err: ProtocolsHandlerUpgrErr<Error>) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for KademliaHandlerQueryErr
impl Send for KademliaHandlerQueryErr
impl Sync for KademliaHandlerQueryErr
impl Unpin for KademliaHandlerQueryErr
impl UnwindSafe for KademliaHandlerQueryErr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more