Struct tor_netdoc::doc::hsdesc::StoredHsDescMeta
source · pub struct StoredHsDescMeta { /* private fields */ }
Available on crate features
hs-common
and hs-dir
only.Expand description
Metadata about an onion service descriptor, as stored at an HsDir.
This object is parsed from the outermost document of an onion service descriptor, and used on the HsDir to maintain its index. It does not include the inner documents’ information about introduction points, since the HsDir cannot decrypt those without knowing the onion service’s un-blinded identity.
The HsDir caches this value, along with the original text of the descriptor.
Implementations§
source§impl StoredHsDescMeta
impl StoredHsDescMeta
sourcepub fn parse(input: &str) -> Result<UncheckedStoredHsDescMeta>
pub fn parse(input: &str) -> Result<UncheckedStoredHsDescMeta>
Parse the outermost layer of the descriptor in input
, and return the
resulting metadata (if possible).
Auto Trait Implementations§
impl Freeze for StoredHsDescMeta
impl RefUnwindSafe for StoredHsDescMeta
impl Send for StoredHsDescMeta
impl Sync for StoredHsDescMeta
impl Unpin for StoredHsDescMeta
impl UnwindSafe for StoredHsDescMeta
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