pub struct VecStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Store for VecStore
impl Store for VecStore
fn len(&self) -> Result<u64, DbError>
fn read_exact_at(&mut self, offset: u64, buf: &mut [u8]) -> Result<(), DbError>
fn write_all_at(&mut self, offset: u64, data: &[u8]) -> Result<(), DbError>
fn sync(&mut self) -> Result<(), DbError>
Source§fn truncate(&mut self, len: u64) -> Result<(), DbError>
fn truncate(&mut self, len: u64) -> Result<(), DbError>
Shrink or grow the logical file to
len bytes (used for crash recovery truncation).fn is_empty(&self) -> Result<bool, DbError>
Auto Trait Implementations§
impl Freeze for VecStore
impl RefUnwindSafe for VecStore
impl Send for VecStore
impl Sync for VecStore
impl Unpin for VecStore
impl UnsafeUnpin for VecStore
impl UnwindSafe for VecStore
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