pub enum PutQueryError {
NoClosestNodes,
ErrorResponse(ErrorSpecific),
Timeout,
}Expand description
Common PutQuery errors
Variants§
NoClosestNodes
Failed to find any nodes close, usually means dht node failed to bootstrap, so the routing table is empty. Check the machine’s access to UDP socket, or find better bootstrapping nodes.
ErrorResponse(ErrorSpecific)
Either Put Query faild to store at any nodes, and most nodes responded
with a non 301 nor 302 errors.
Either way; contains the most common error response.
Timeout
PutQuery timed out with no responses neither success or errors
Trait Implementations§
Source§impl Clone for PutQueryError
impl Clone for PutQueryError
Source§fn clone(&self) -> PutQueryError
fn clone(&self) -> PutQueryError
Returns a duplicate 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 PutQueryError
impl Debug for PutQueryError
Source§impl Display for PutQueryError
impl Display for PutQueryError
Source§impl Error for PutQueryError
impl Error for PutQueryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<PutQueryError> for PutError
impl From<PutQueryError> for PutError
Source§fn from(source: PutQueryError) -> Self
fn from(source: PutQueryError) -> Self
Converts to this type from the input type.
Source§impl From<PutQueryError> for PutMutableError
impl From<PutQueryError> for PutMutableError
Source§fn from(source: PutQueryError) -> Self
fn from(source: PutQueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PutQueryError
impl RefUnwindSafe for PutQueryError
impl Send for PutQueryError
impl Sync for PutQueryError
impl Unpin for PutQueryError
impl UnsafeUnpin for PutQueryError
impl UnwindSafe for PutQueryError
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