pub trait PreKeysStore:
PreKeyStore
+ IdentityKeyStore
+ SignedPreKeyStore
+ KyberPreKeyStore
+ KyberPreKeyStoreExt {
// Required methods
fn next_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn next_signed_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn next_pq_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn signed_pre_keys_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn kyber_pre_keys_count<'life0, 'async_trait>(
&'life0 self,
last_resort: bool,
) -> Pin<Box<dyn Future<Output = Result<usize, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn signed_prekey_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<SignedPreKeyId>, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn last_resort_kyber_prekey_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<KyberPreKeyId>, SignalProtocolError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Stores the ID of keys published ahead of time
Required Methods§
Sourcefn next_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ID of the next pre key
Sourcefn next_signed_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_signed_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ID of the next signed pre key
Sourcefn next_pq_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_pq_pre_key_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u32, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ID of the next PQ pre key
Sourcefn signed_pre_keys_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn signed_pre_keys_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
number of signed pre-keys we currently have in store
Sourcefn kyber_pre_keys_count<'life0, 'async_trait>(
&'life0 self,
last_resort: bool,
) -> Pin<Box<dyn Future<Output = Result<usize, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn kyber_pre_keys_count<'life0, 'async_trait>(
&'life0 self,
last_resort: bool,
) -> Pin<Box<dyn Future<Output = Result<usize, SignalProtocolError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
number of kyber pre-keys we currently have in store