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.
Source§impl ToEncodableKey for HsClientDescEncKeypair
impl ToEncodableKey for HsClientDescEncKeypair
Source§type Key = StaticKeypair
type Key = StaticKeypair
The key type this can be converted to/from.
Source§type KeyPair = HsClientDescEncKeypair
type KeyPair = HsClientDescEncKeypair
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 HsClientDescEncKeypair
impl RefUnwindSafe for HsClientDescEncKeypair
impl Send for HsClientDescEncKeypair
impl Sync for HsClientDescEncKeypair
impl Unpin for HsClientDescEncKeypair
impl UnwindSafe for HsClientDescEncKeypair
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>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<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>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
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)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§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