pub enum HsDescAction {
Requested,
Upload,
Received,
Uploaded,
Ignore,
Failed,
Created,
}Expand description
Action being taken in a HS_DESC event.
§Example
use stem_rs::HsDescAction;
let action = HsDescAction::Received;
println!("HS_DESC action: {}", action); // Prints "RECEIVED"Variants§
Requested
Uncached hidden service descriptor is being requested.
Upload
Descriptor is being uploaded with HSPOST.
Received
Hidden service descriptor has been retrieved.
Uploaded
Descriptor was uploaded with HSPOST.
Ignore
Fetched descriptor was ignored (already have v0 descriptor).
Failed
We were unable to retrieve the descriptor.
Created
Hidden service descriptor was just created.
Trait Implementations§
Source§impl Clone for HsDescAction
impl Clone for HsDescAction
Source§fn clone(&self) -> HsDescAction
fn clone(&self) -> HsDescAction
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 HsDescAction
impl Debug for HsDescAction
Source§impl Display for HsDescAction
impl Display for HsDescAction
Source§impl Hash for HsDescAction
impl Hash for HsDescAction
Source§impl PartialEq for HsDescAction
impl PartialEq for HsDescAction
impl Copy for HsDescAction
impl Eq for HsDescAction
impl StructuralPartialEq for HsDescAction
Auto Trait Implementations§
impl Freeze for HsDescAction
impl RefUnwindSafe for HsDescAction
impl Send for HsDescAction
impl Sync for HsDescAction
impl Unpin for HsDescAction
impl UnwindSafe for HsDescAction
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