pub enum KademliaHandlerQueryErr {
Upgrade(ConnectionHandlerUpgrErr<Error>),
UnexpectedMessage,
Io(Error),
}
Expand description
Error that can happen when requesting an RPC query.
Variants§
Upgrade(ConnectionHandlerUpgrErr<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§
source§impl Debug for KademliaHandlerQueryErr
impl Debug for KademliaHandlerQueryErr
source§impl Display for KademliaHandlerQueryErr
impl Display for KademliaHandlerQueryErr
source§impl Error for KademliaHandlerQueryErr
impl Error for KademliaHandlerQueryErr
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<ConnectionHandlerUpgrErr<Error>> for KademliaHandlerQueryErr
impl From<ConnectionHandlerUpgrErr<Error>> for KademliaHandlerQueryErr
source§fn from(err: ConnectionHandlerUpgrErr<Error>) -> Self
fn from(err: ConnectionHandlerUpgrErr<Error>) -> Self
Converts to this type from the input type.
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§
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