pub struct FileBackend { /* private fields */ }
Expand description
Stores a database as a file on-disk.
Implementations§
Source§impl FileBackend
impl FileBackend
Sourcepub fn new(file: File) -> Result<Self, DatabaseError>
pub fn new(file: File) -> Result<Self, DatabaseError>
Creates a new backend which stores data to the given file.
Trait Implementations§
Source§impl Debug for FileBackend
impl Debug for FileBackend
Source§impl Drop for FileBackend
impl Drop for FileBackend
Auto Trait Implementations§
impl Freeze for FileBackend
impl RefUnwindSafe for FileBackend
impl Send for FileBackend
impl Sync for FileBackend
impl Unpin 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