pub trait KyberPreKeyStoreExt: KyberPreKeyStore {
// Required methods
fn store_last_resort_kyber_pre_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
kyber_prekey_id: KyberPreKeyId,
record: &'life1 KyberPreKeyRecord,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_last_resort_kyber_pre_keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<KyberPreKeyRecord>, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_kyber_pre_key<'life0, 'async_trait>(
&'life0 mut self,
kyber_prekey_id: KyberPreKeyId,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn mark_all_one_time_kyber_pre_keys_stale_if_necessary<'life0, 'async_trait>(
&'life0 mut self,
stale_time: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_all_stale_one_time_kyber_pre_keys<'life0, 'async_trait>(
&'life0 mut self,
threshold: DateTime<Utc>,
min_count: usize,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Additional methods for the Kyber pre key store
Analogue of Android’s ServiceKyberPreKeyStore
Required Methods§
fn store_last_resort_kyber_pre_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
kyber_prekey_id: KyberPreKeyId,
record: &'life1 KyberPreKeyRecord,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_last_resort_kyber_pre_keys<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<KyberPreKeyRecord>, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_kyber_pre_key<'life0, 'async_trait>(
&'life0 mut self,
kyber_prekey_id: KyberPreKeyId,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
sourcefn mark_all_one_time_kyber_pre_keys_stale_if_necessary<'life0, 'async_trait>(
&'life0 mut self,
stale_time: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn mark_all_one_time_kyber_pre_keys_stale_if_necessary<'life0, 'async_trait>(
&'life0 mut self,
stale_time: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Analogous to markAllOneTimeKyberPreKeysStaleIfNecessary
sourcefn delete_all_stale_one_time_kyber_pre_keys<'life0, 'async_trait>(
&'life0 mut self,
threshold: DateTime<Utc>,
min_count: usize,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_all_stale_one_time_kyber_pre_keys<'life0, 'async_trait>(
&'life0 mut self,
threshold: DateTime<Utc>,
min_count: usize,
) -> Pin<Box<dyn Future<Output = Result<(), SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Analogue of deleteAllStaleOneTimeKyberPreKeys