pub struct MmapReader { /* private fields */ }Expand description
Memory-mapped reader
Implementations§
Source§impl MmapReader
impl MmapReader
Sourcepub fn read_block(&self, offset: u64) -> Result<Bytes>
pub fn read_block(&self, offset: u64) -> Result<Bytes>
Read entire block at offset
Trait Implementations§
Source§impl Clone for MmapReader
impl Clone for MmapReader
Source§fn clone(&self) -> MmapReader
fn clone(&self) -> MmapReader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MmapReader
impl !RefUnwindSafe for MmapReader
impl Send for MmapReader
impl Sync for MmapReader
impl Unpin for MmapReader
impl !UnwindSafe for MmapReader
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