pub enum SecretKind {
SharedKey = 0,
PairingSecret = 1,
PairingContact = 2,
}Expand description
Kind of secret material stored by crate::protocol::DeRecSecretStore.
Each variant has its own lifecycle (see per-variant docs). Used as the
kind argument to crate::protocol::DeRecSecretStore::load and
crate::protocol::DeRecSecretStore::remove; on
crate::protocol::DeRecSecretStore::save the kind is inferred from
the SecretValue variant and need not be passed.
Variants§
The post-pairing symmetric channel key (see SecretValue::SharedKey).
PairingSecret = 1
The ephemeral ECIES / ML-KEM key material used during pairing.
PairingContact = 2
The initiator’s ContactMessage stored transiently between
start and pairing completion. Removed once the shared key
is derived.
Trait Implementations§
Source§impl Clone for SecretKind
impl Clone for SecretKind
Source§fn clone(&self) -> SecretKind
fn clone(&self) -> SecretKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecretKind
Source§impl Debug for SecretKind
impl Debug for SecretKind
impl Eq for SecretKind
Source§impl PartialEq for SecretKind
impl PartialEq for SecretKind
impl StructuralPartialEq for SecretKind
Auto Trait Implementations§
impl Freeze for SecretKind
impl RefUnwindSafe for SecretKind
impl Send for SecretKind
impl Sync for SecretKind
impl Unpin for SecretKind
impl UnsafeUnpin for SecretKind
impl UnwindSafe for SecretKind
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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