Struct tor_hscrypto::pk::HsSvcNtorKey
source · pub struct HsSvcNtorKey(/* private fields */);
Expand description
A key used in the HsNtor handshake between the client and the onion service.
(KP_hss_ntor
)
The onion service chooses a different one of these to use with each introduction point, though it does not need to tell the introduction points about these keys.
Methods from Deref<Target = PublicKey>§
Trait Implementations§
source§impl AsRef<PublicKey> for HsSvcNtorKey
impl AsRef<PublicKey> for HsSvcNtorKey
source§impl Clone for HsSvcNtorKey
impl Clone for HsSvcNtorKey
source§fn clone(&self) -> HsSvcNtorKey
fn clone(&self) -> HsSvcNtorKey
Returns a copy 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 HsSvcNtorKey
impl Debug for HsSvcNtorKey
source§impl Deref for HsSvcNtorKey
impl Deref for HsSvcNtorKey
source§impl From<HsSvcNtorKey> for PublicKey
impl From<HsSvcNtorKey> for PublicKey
source§fn from(original: HsSvcNtorKey) -> Self
fn from(original: HsSvcNtorKey) -> Self
Converts to this type from the input type.
source§impl From<PublicKey> for HsSvcNtorKey
impl From<PublicKey> for HsSvcNtorKey
source§fn from(original: PublicKey) -> HsSvcNtorKey
fn from(original: PublicKey) -> HsSvcNtorKey
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HsSvcNtorKey
impl RefUnwindSafe for HsSvcNtorKey
impl Send for HsSvcNtorKey
impl Sync for HsSvcNtorKey
impl Unpin for HsSvcNtorKey
impl UnwindSafe for HsSvcNtorKey
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