pub struct FileStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PersistedStore for FileStore
impl PersistedStore for FileStore
type Error = FileStoreError
fn stored_len( &self, region: SnapshotRegion, ) -> Result<Option<usize>, <FileStore as PersistedStore>::Error>
Source§fn load<'b>(
&self,
region: SnapshotRegion,
buf: &'b mut [u8],
) -> Result<Option<&'b [u8]>, <FileStore as PersistedStore>::Error>
fn load<'b>( &self, region: SnapshotRegion, buf: &'b mut [u8], ) -> Result<Option<&'b [u8]>, <FileStore as PersistedStore>::Error>
A
buf shorter than the stored snapshot is the impl’s error, never a silent truncation.fn store( &mut self, region: SnapshotRegion, snapshot: &[u8], ) -> Result<(), <FileStore as PersistedStore>::Error>
fn remove( &mut self, region: SnapshotRegion, ) -> Result<Removal, <FileStore as PersistedStore>::Error>
Auto Trait Implementations§
impl Freeze for FileStore
impl RefUnwindSafe for FileStore
impl Send for FileStore
impl Sync for FileStore
impl Unpin for FileStore
impl UnsafeUnpin for FileStore
impl UnwindSafe for FileStore
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