pub struct MemoryDeMlsStorage { /* private fields */ }Expand description
In-memory MLS keystore for development and testing.
All data is lost on restart. Production callers supply a persistent
DeMlsStorage (e.g. SQLite-backed) instead.
Implementations§
Trait Implementations§
Source§impl DeMlsStorage for MemoryDeMlsStorage
impl DeMlsStorage for MemoryDeMlsStorage
Source§type MlsStorage = MemoryStorage
type MlsStorage = MemoryStorage
The OpenMLS storage provider type.
VERSION is the OpenMLS storage version (currently 1).
Source§type StorageError = MemoryStorageError
type StorageError = MemoryStorageError
Storage error type (must be compatible with OpenMLS).
fn store_key_package_ref(&self, hash_ref: &[u8]) -> Result<(), MlsError>
fn is_our_key_package(&self, hash_ref: &[u8]) -> Result<bool, MlsError>
fn remove_key_package_ref(&self, hash_ref: &[u8]) -> Result<(), MlsError>
fn mls_storage(&self) -> &Self::MlsStorage
Source§impl Default for MemoryDeMlsStorage
impl Default for MemoryDeMlsStorage
Source§fn default() -> MemoryDeMlsStorage
fn default() -> MemoryDeMlsStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryDeMlsStorage
impl RefUnwindSafe for MemoryDeMlsStorage
impl Send for MemoryDeMlsStorage
impl Sync for MemoryDeMlsStorage
impl Unpin for MemoryDeMlsStorage
impl UnsafeUnpin for MemoryDeMlsStorage
impl UnwindSafe for MemoryDeMlsStorage
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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