pub struct InMemKyberPreKeyStore { /* private fields */ }
Expand description
Reference implementation of traits::KyberPreKeyStore.
Implementations§
source§impl InMemKyberPreKeyStore
impl InMemKyberPreKeyStore
sourcepub fn all_kyber_pre_key_ids(&self) -> impl Iterator<Item = &KyberPreKeyId>
pub fn all_kyber_pre_key_ids(&self) -> impl Iterator<Item = &KyberPreKeyId>
Returns all registered Kyber pre-key ids
Trait Implementations§
source§impl Clone for InMemKyberPreKeyStore
impl Clone for InMemKyberPreKeyStore
source§fn clone(&self) -> InMemKyberPreKeyStore
fn clone(&self) -> InMemKyberPreKeyStore
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 Default for InMemKyberPreKeyStore
impl Default for InMemKyberPreKeyStore
source§impl KyberPreKeyStore for InMemKyberPreKeyStore
impl KyberPreKeyStore for InMemKyberPreKeyStore
source§fn get_kyber_pre_key<'life0, 'async_trait>(
&'life0 self,
kyber_prekey_id: KyberPreKeyId,
) -> Pin<Box<dyn Future<Output = Result<KyberPreKeyRecord>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_kyber_pre_key<'life0, 'async_trait>(
&'life0 self,
kyber_prekey_id: KyberPreKeyId,
) -> Pin<Box<dyn Future<Output = Result<KyberPreKeyRecord>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Look up the signed kyber pre-key corresponding to
kyber_prekey_id
.source§fn save_kyber_pre_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
kyber_prekey_id: KyberPreKeyId,
record: &'life1 KyberPreKeyRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_kyber_pre_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
kyber_prekey_id: KyberPreKeyId,
record: &'life1 KyberPreKeyRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Set the entry for
kyber_prekey_id
to the value of record
.source§fn mark_kyber_pre_key_used<'life0, 'async_trait>(
&'life0 mut self,
_kyber_prekey_id: KyberPreKeyId,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn mark_kyber_pre_key_used<'life0, 'async_trait>(
&'life0 mut self,
_kyber_prekey_id: KyberPreKeyId,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Mark the entry for
kyber_prekey_id
as “used”.
This would mean different things for one-time and last-resort Kyber keys.Auto Trait Implementations§
impl Freeze for InMemKyberPreKeyStore
impl RefUnwindSafe for InMemKyberPreKeyStore
impl Send for InMemKyberPreKeyStore
impl Sync for InMemKyberPreKeyStore
impl Unpin for InMemKyberPreKeyStore
impl UnwindSafe for InMemKyberPreKeyStore
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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