pub struct MemoryStore(/* private fields */);Expand description
Keeps everything in memory; for tests and hosts that manage persistence themselves.
Implementations§
Trait Implementations§
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§impl TenantStore for MemoryStore
impl TenantStore for MemoryStore
Source§fn replace_with(&self, edit: &mut Edit<'_>) -> Result<TenantSet>
fn replace_with(&self, edit: &mut Edit<'_>) -> Result<TenantSet>
Atomically replaces the contents with
edit(current) and returns the
new contents. If edit fails nothing is written.fn add_tenant(&self, tenant: Tenant) -> Result<()>
fn issue_code(&self, code: EnrollCode) -> Result<()>
Source§fn revoke(&self, name: &str) -> Result<()>
fn revoke(&self, name: &str) -> Result<()>
Removes a tenant outright; its PSK stops working and its session ends.
Auto Trait Implementations§
impl !Freeze for MemoryStore
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnsafeUnpin for MemoryStore
impl UnwindSafe for MemoryStore
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