Struct mls_rs::storage_provider::sqlite::storage::SqLiteGroupStateStorage
source · pub struct SqLiteGroupStateStorage { /* private fields */ }
Available on crate feature
sqlite
only.Expand description
SQLite Storage for MLS group states.
Implementations§
source§impl SqLiteGroupStateStorage
impl SqLiteGroupStateStorage
pub fn with_max_epoch_retention( self, max_epoch_retention: u64, ) -> SqLiteGroupStateStorage
sourcepub fn group_ids(&self) -> Result<Vec<Vec<u8>>, SqLiteDataStorageError>
pub fn group_ids(&self) -> Result<Vec<Vec<u8>>, SqLiteDataStorageError>
List all the group ids for groups that are stored.
sourcepub fn delete_group(
&self,
group_id: &[u8],
) -> Result<(), SqLiteDataStorageError>
pub fn delete_group( &self, group_id: &[u8], ) -> Result<(), SqLiteDataStorageError>
Delete a group from storage.
pub fn max_epoch_retention(&self) -> u64
Trait Implementations§
source§impl Clone for SqLiteGroupStateStorage
impl Clone for SqLiteGroupStateStorage
source§fn clone(&self) -> SqLiteGroupStateStorage
fn clone(&self) -> SqLiteGroupStateStorage
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 SqLiteGroupStateStorage
impl Debug for SqLiteGroupStateStorage
source§impl GroupStateStorage for SqLiteGroupStateStorage
impl GroupStateStorage for SqLiteGroupStateStorage
type Error = SqLiteDataStorageError
source§fn write(
&mut self,
state: GroupState,
inserts: Vec<EpochRecord>,
updates: Vec<EpochRecord>,
) -> Result<(), <SqLiteGroupStateStorage as GroupStateStorage>::Error>
fn write( &mut self, state: GroupState, inserts: Vec<EpochRecord>, updates: Vec<EpochRecord>, ) -> Result<(), <SqLiteGroupStateStorage as GroupStateStorage>::Error>
Write pending state updates. Read more
source§fn state(
&self,
group_id: &[u8],
) -> Result<Option<Vec<u8>>, <SqLiteGroupStateStorage as GroupStateStorage>::Error>
fn state( &self, group_id: &[u8], ) -> Result<Option<Vec<u8>>, <SqLiteGroupStateStorage as GroupStateStorage>::Error>
Fetch a group state from storage.
source§fn max_epoch_id(
&self,
group_id: &[u8],
) -> Result<Option<u64>, <SqLiteGroupStateStorage as GroupStateStorage>::Error>
fn max_epoch_id( &self, group_id: &[u8], ) -> Result<Option<u64>, <SqLiteGroupStateStorage as GroupStateStorage>::Error>
The
EpochRecord::id
value that is associated with a stored
prior epoch for a particular group.Auto Trait Implementations§
impl Freeze for SqLiteGroupStateStorage
impl RefUnwindSafe for SqLiteGroupStateStorage
impl Send for SqLiteGroupStateStorage
impl Sync for SqLiteGroupStateStorage
impl Unpin for SqLiteGroupStateStorage
impl UnwindSafe for SqLiteGroupStateStorage
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
)