pub enum HsDescReason {
BadDesc,
QueryRejected,
UploadRejected,
NotFound,
QueryNoHsDir,
QueryRateLimited,
Unexpected,
}Expand description
Reason for a hidden service descriptor fetch to fail.
§Example
use stem_rs::HsDescReason;
let reason = HsDescReason::NotFound;
println!("HS_DESC reason: {}", reason); // Prints "NOT_FOUND"Variants§
BadDesc
Descriptor was unparseable.
QueryRejected
Hidden service directory refused to provide the descriptor.
UploadRejected
Descriptor was rejected by the hidden service directory.
NotFound
Descriptor with the given identifier wasn’t found.
QueryNoHsDir
No hidden service directory was found.
QueryRateLimited
Request was throttled (rate limited).
Unexpected
Failure type is unknown.
Trait Implementations§
Source§impl Clone for HsDescReason
impl Clone for HsDescReason
Source§fn clone(&self) -> HsDescReason
fn clone(&self) -> HsDescReason
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 HsDescReason
impl Debug for HsDescReason
Source§impl Display for HsDescReason
impl Display for HsDescReason
Source§impl Hash for HsDescReason
impl Hash for HsDescReason
Source§impl PartialEq for HsDescReason
impl PartialEq for HsDescReason
impl Copy for HsDescReason
impl Eq for HsDescReason
impl StructuralPartialEq for HsDescReason
Auto Trait Implementations§
impl Freeze for HsDescReason
impl RefUnwindSafe for HsDescReason
impl Send for HsDescReason
impl Sync for HsDescReason
impl Unpin for HsDescReason
impl UnwindSafe for HsDescReason
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