Struct redb::backends::FileBackend
source · 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