pub struct ImportFileRegion<'a, F: ?Sized> {
pub file: &'a mut F,
pub file_offset: u64,
pub file_length: u64,
pub gpa: u64,
pub memory_length: u64,
pub acceptance: BootPageAcceptance,
pub tag: &'a str,
}Expand description
Parameters for ChunkBuf::import_file_region.
Fields§
§file: &'a mut FThe file to read from.
file_offset: u64The offset within the file to start reading.
file_length: u64The number of bytes to read from the file.
gpa: u64The guest physical address to import into.
memory_length: u64The total memory region length (file data + zero fill).
acceptance: BootPageAcceptanceThe page acceptance type.
tag: &'a strA debug tag for tracing.
Auto Trait Implementations§
impl<'a, F> Freeze for ImportFileRegion<'a, F>where
F: ?Sized,
impl<'a, F> RefUnwindSafe for ImportFileRegion<'a, F>where
F: RefUnwindSafe + ?Sized,
impl<'a, F> Send for ImportFileRegion<'a, F>
impl<'a, F> Sync for ImportFileRegion<'a, F>
impl<'a, F> Unpin for ImportFileRegion<'a, F>where
F: ?Sized,
impl<'a, F> !UnwindSafe for ImportFileRegion<'a, F>
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