pub struct FileStore { /* private fields */ }Expand description
A TOML file, safe to edit from several processes: writers take an exclusive
lock on a sidecar <file>.lock, and replace the file by atomic rename so a
reader never sees a half-written one.
Implementations§
Trait Implementations§
Source§impl TenantStore for FileStore
impl TenantStore for FileStore
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 FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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