Struct tor_hscrypto::pk::HsClientDescEncKeypair
source · pub struct HsClientDescEncKeypair { /* private fields */ }
Expand description
A pair of a public and private components for a HsClientDescEncKey
.
Implementations§
source§impl HsClientDescEncKeypair
impl HsClientDescEncKeypair
sourcepub fn new(public: HsClientDescEncKey, secret: HsClientDescEncSecretKey) -> Self
pub fn new(public: HsClientDescEncKey, secret: HsClientDescEncSecretKey) -> Self
Construct this keypair from a public key and a secret key.
sourcepub fn from_secret_key(secret: HsClientDescEncSecretKey) -> Self
pub fn from_secret_key(secret: HsClientDescEncSecretKey) -> Self
Construct this keypair from a secret key.
sourcepub fn public(&self) -> &HsClientDescEncKey
pub fn public(&self) -> &HsClientDescEncKey
Return the public part of this keypair.
sourcepub fn secret(&self) -> &HsClientDescEncSecretKey
pub fn secret(&self) -> &HsClientDescEncSecretKey
Return the secret part of this keypair.
Trait Implementations§
source§impl Debug for HsClientDescEncKeypair
impl Debug for HsClientDescEncKeypair
source§impl From<&HsClientDescEncKeypair> for HsClientDescEncKey
impl From<&HsClientDescEncKeypair> for HsClientDescEncKey
source§fn from(ks: &HsClientDescEncKeypair) -> Self
fn from(ks: &HsClientDescEncKeypair) -> Self
Converts to this type from the input type.
source§impl From<HsClientDescEncKeypair> for StaticKeypair
impl From<HsClientDescEncKeypair> for StaticKeypair
source§fn from(input: HsClientDescEncKeypair) -> StaticKeypair
fn from(input: HsClientDescEncKeypair) -> StaticKeypair
Converts to this type from the input type.
source§impl From<StaticKeypair> for HsClientDescEncKeypair
impl From<StaticKeypair> for HsClientDescEncKeypair
source§fn from(input: StaticKeypair) -> HsClientDescEncKeypair
fn from(input: StaticKeypair) -> HsClientDescEncKeypair
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HsClientDescEncKeypair
impl RefUnwindSafe for HsClientDescEncKeypair
impl Send for HsClientDescEncKeypair
impl Sync for HsClientDescEncKeypair
impl Unpin for HsClientDescEncKeypair
impl UnwindSafe for HsClientDescEncKeypair
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