Struct tor_netdoc::doc::hsdesc::EncryptedHsDesc
source · pub struct EncryptedHsDesc { /* private fields */ }
Available on crate feature
hs-common
only.Expand description
An onion service after it has been parsed by the client, but not yet decrypted.
Implementations§
source§impl EncryptedHsDesc
impl EncryptedHsDesc
sourcepub fn decrypt(
&self,
subcredential: &Subcredential,
hsc_desc_enc: Option<&HsClientDescEncKeypair>
) -> StdResult<TimerangeBound<SignatureGated<HsDesc>>, HsDescError>
pub fn decrypt( &self, subcredential: &Subcredential, hsc_desc_enc: Option<&HsClientDescEncKeypair> ) -> StdResult<TimerangeBound<SignatureGated<HsDesc>>, HsDescError>
Attempt to decrypt both layers of encryption in this onion service descriptor.
If hsc_desc_enc
is provided, we use it to decrypt the inner encryption layer;
otherwise, we require that the inner document is encrypted using the “no
client authorization” method.
Auto Trait Implementations§
impl Freeze for EncryptedHsDesc
impl RefUnwindSafe for EncryptedHsDesc
impl Send for EncryptedHsDesc
impl Sync for EncryptedHsDesc
impl Unpin for EncryptedHsDesc
impl UnwindSafe for EncryptedHsDesc
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more