pub struct NativeStorage { /* private fields */ }Expand description
Native storage backend using std::fs
Implementations§
Source§impl NativeStorage
impl NativeStorage
Trait Implementations§
Source§impl StorageBackend for NativeStorage
impl StorageBackend for NativeStorage
Source§fn create_file(&self, path: &str) -> Result<Box<dyn StorageFile>, StorageError>
fn create_file(&self, path: &str) -> Result<Box<dyn StorageFile>, StorageError>
Create a new file at the specified path Read more
Source§fn open_file(&self, path: &str) -> Result<Box<dyn StorageFile>, StorageError>
fn open_file(&self, path: &str) -> Result<Box<dyn StorageFile>, StorageError>
Open an existing file, or create it if it doesn’t exist Read more
Source§fn delete_file(&self, path: &str) -> Result<(), StorageError>
fn delete_file(&self, path: &str) -> Result<(), StorageError>
Delete a file at the specified path Read more
Auto Trait Implementations§
impl Freeze for NativeStorage
impl RefUnwindSafe for NativeStorage
impl Send for NativeStorage
impl Sync for NativeStorage
impl Unpin for NativeStorage
impl UnwindSafe for NativeStorage
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