pub struct MmapPool { /* private fields */ }Expand description
Pool of memory-mapped readers
Manages a cache of MmapReaders to avoid repeatedly mapping the same files.
Implementations§
Source§impl MmapPool
impl MmapPool
Sourcepub fn get_or_open(&self, path: impl AsRef<Path>) -> Result<MmapReader>
pub fn get_or_open(&self, path: impl AsRef<Path>) -> Result<MmapReader>
Get or create a reader for the given path
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MmapPool
impl !RefUnwindSafe for MmapPool
impl Send for MmapPool
impl Sync for MmapPool
impl Unpin for MmapPool
impl !UnwindSafe for MmapPool
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