pub struct DefaultStorageBackend;Expand description
Default local-filesystem backend.
Implementations§
Trait Implementations§
Source§impl Default for DefaultStorageBackend
impl Default for DefaultStorageBackend
Source§impl StorageBackend for DefaultStorageBackend
impl StorageBackend for DefaultStorageBackend
Source§fn read(
&self,
path: &Path,
offset: u64,
data: &mut [u8],
) -> Result<usize, EdgestoreError>
fn read( &self, path: &Path, offset: u64, data: &mut [u8], ) -> Result<usize, EdgestoreError>
Source§fn flush(&self, path: &Path) -> Result<(), EdgestoreError>
fn flush(&self, path: &Path) -> Result<(), EdgestoreError>
Ensure all prior writes to
path are durable.Source§fn write_with_hint(
&self,
path: &Path,
offset: u64,
data: &[u8],
_hint: PlacementHint,
) -> Result<(), EdgestoreError>
fn write_with_hint( &self, path: &Path, offset: u64, data: &[u8], _hint: PlacementHint, ) -> Result<(), EdgestoreError>
Write
data with an optional placement hint. Read moreAuto Trait Implementations§
impl Freeze for DefaultStorageBackend
impl RefUnwindSafe for DefaultStorageBackend
impl Send for DefaultStorageBackend
impl Sync for DefaultStorageBackend
impl Unpin for DefaultStorageBackend
impl UnsafeUnpin for DefaultStorageBackend
impl UnwindSafe for DefaultStorageBackend
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