pub struct HsSvcNtorKeypair { /* private fields */ }
Expand description
A pair of a public and private components for a HsSvcNtorKey
.
Implementations§
Source§impl HsSvcNtorKeypair
impl HsSvcNtorKeypair
Sourcepub fn new(public: HsSvcNtorKey, secret: HsSvcNtorSecretKey) -> Self
pub fn new(public: HsSvcNtorKey, secret: HsSvcNtorSecretKey) -> Self
Construct this keypair from a public key and a secret key.
Sourcepub fn from_secret_key(secret: HsSvcNtorSecretKey) -> Self
pub fn from_secret_key(secret: HsSvcNtorSecretKey) -> Self
Construct this keypair from a secret key.
Sourcepub fn public(&self) -> &HsSvcNtorKey
pub fn public(&self) -> &HsSvcNtorKey
Return the public part of this keypair.
Sourcepub fn secret(&self) -> &HsSvcNtorSecretKey
pub fn secret(&self) -> &HsSvcNtorSecretKey
Return the secret part of this keypair.
Trait Implementations§
Source§impl Debug for HsSvcNtorKeypair
impl Debug for HsSvcNtorKeypair
Source§impl From<HsSvcNtorKeypair> for StaticKeypair
impl From<HsSvcNtorKeypair> for StaticKeypair
Source§fn from(input: HsSvcNtorKeypair) -> StaticKeypair
fn from(input: HsSvcNtorKeypair) -> StaticKeypair
Converts to this type from the input type.
Source§impl From<StaticKeypair> for HsSvcNtorKeypair
impl From<StaticKeypair> for HsSvcNtorKeypair
Source§fn from(input: StaticKeypair) -> HsSvcNtorKeypair
fn from(input: StaticKeypair) -> HsSvcNtorKeypair
Converts to this type from the input type.
Source§impl ToEncodableKey for HsSvcNtorKeypair
impl ToEncodableKey for HsSvcNtorKeypair
Source§type Key = StaticKeypair
type Key = StaticKeypair
The key type this can be converted to/from.
Source§type KeyPair = HsSvcNtorKeypair
type KeyPair = HsSvcNtorKeypair
The KeyPair (secret+public) of which this key is a subset. For secret
keys, this type is Self. For public keys, this type is the
corresponding (secret) keypair. Read more
Source§fn to_encodable_key(self) -> Self::Key
fn to_encodable_key(self) -> Self::Key
Convert this key to a type that implements
EncodableItem
.Source§fn from_encodable_key(key: Self::Key) -> Self
fn from_encodable_key(key: Self::Key) -> Self
Convert an
EncodableItem
to another key type.Auto Trait Implementations§
impl Freeze for HsSvcNtorKeypair
impl RefUnwindSafe for HsSvcNtorKeypair
impl Send for HsSvcNtorKeypair
impl Sync for HsSvcNtorKeypair
impl Unpin for HsSvcNtorKeypair
impl UnwindSafe for HsSvcNtorKeypair
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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