pub struct ClientConfig {
pub identity: Identity,
pub device_label: String,
pub storage: Arc<dyn Storage>,
pub transport: Arc<dyn Transport>,
pub now_ms: u64,
pub storage_backend: StorageBackend,
}Fields§
§identity: Identity§device_label: String§storage: Arc<dyn Storage>§transport: Arc<dyn Transport>§now_ms: u64Wall clock in ms. Pulled from the host so we can use a synthetic clock in tests.
storage_backend: StorageBackend[CR-4] OpenMLS-provider backend. Defaults to in-memory; iOS NSE and web SW
cold-start paths MUST pass StorageBackend::Sqlite { path, encryption_key }
(native) or StorageBackend::IndexedDb { db_name } (WASM, when that lands).
See docs/design/CR4_CR7_PERSISTENCE.md.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientConfig
impl !RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl !UnwindSafe for ClientConfig
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> 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