pub struct MappedFile { /* private fields */ }Expand description
Read-only file-backed mapping of an entire file (lazy page faults).
Used by the loader to parse and fill guest segments without
fs::read of multi‑hundred‑MiB containers (demand-paged I/O).
Dropping unmaps the range. Safe for concurrent shared reads only while
this owner is alive (not Sync; single-threaded load path).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Sync for MappedFile
impl Freeze for MappedFile
impl RefUnwindSafe for MappedFile
impl Unpin for MappedFile
impl UnsafeUnpin for MappedFile
impl UnwindSafe for MappedFile
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