pub struct MmapDataStorage {
pub offset: usize,
pub capacity: usize,
pub read_value_times: u64,
pub write_times: u64,
/* private fields */
}Fields§
§offset: usize§capacity: usize§read_value_times: u64§write_times: u64Implementations§
Trait Implementations§
source§impl DataStorageReader for MmapDataStorage
impl DataStorageReader for MmapDataStorage
source§fn read_value(
&mut self,
row_offset: usize
) -> Result<Option<TimedValue<Vec<u8>>>>
fn read_value( &mut self, row_offset: usize ) -> Result<Option<TimedValue<Vec<u8>>>>
Read value from this storage at row_offset
source§fn read_next_row(&mut self) -> Result<Option<RowToRead>>
fn read_next_row(&mut self) -> Result<Option<RowToRead>>
Read next value from this storage
fn seek_to_end(&mut self) -> Result<()>
fn offset(&self) -> usize
source§impl DataStorageWriter for MmapDataStorage
impl DataStorageWriter for MmapDataStorage
Auto Trait Implementations§
impl RefUnwindSafe for MmapDataStorage
impl Send for MmapDataStorage
impl Sync for MmapDataStorage
impl Unpin for MmapDataStorage
impl UnwindSafe for MmapDataStorage
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