pub struct FileBackend { /* private fields */ }Expand description
File-backed persistence. Each device slice is stored as a JSON file at
{base_dir}/{store_id}/{device_id}.json.
Writes are atomic (write to .tmp, then rename) so a crash mid-write
never corrupts the persisted data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileBackend
impl RefUnwindSafe for FileBackend
impl Send for FileBackend
impl Sync for FileBackend
impl Unpin for FileBackend
impl UnsafeUnpin for FileBackend
impl UnwindSafe for FileBackend
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