pub struct SqLiteKeyPackageStorage { /* private fields */ }
Expand description
SQLite storage for MLS Key Packages.
Implementations§
source§impl SqLiteKeyPackageStorage
impl SqLiteKeyPackageStorage
sourcepub fn delete(&self, id: &[u8]) -> Result<(), SqLiteDataStorageError>
pub fn delete(&self, id: &[u8]) -> Result<(), SqLiteDataStorageError>
Delete a specific key package from storage based on it’s id.
pub fn delete_expired(&self) -> Result<(), SqLiteDataStorageError>
pub fn delete_expired_by_time( &self, time: u64, ) -> Result<(), SqLiteDataStorageError>
pub fn count(&self) -> Result<usize, SqLiteDataStorageError>
Trait Implementations§
source§impl Clone for SqLiteKeyPackageStorage
impl Clone for SqLiteKeyPackageStorage
source§fn clone(&self) -> SqLiteKeyPackageStorage
fn clone(&self) -> SqLiteKeyPackageStorage
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 Debug for SqLiteKeyPackageStorage
impl Debug for SqLiteKeyPackageStorage
source§impl KeyPackageStorage for SqLiteKeyPackageStorage
impl KeyPackageStorage for SqLiteKeyPackageStorage
Auto Trait Implementations§
impl Freeze for SqLiteKeyPackageStorage
impl RefUnwindSafe for SqLiteKeyPackageStorage
impl Send for SqLiteKeyPackageStorage
impl Sync for SqLiteKeyPackageStorage
impl Unpin for SqLiteKeyPackageStorage
impl UnwindSafe for SqLiteKeyPackageStorage
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