pub struct VmMemoryFileMapping {
pub file: File,
pub length: usize,
pub mem_offset: usize,
pub file_offset: u64,
}Expand description
Request to mmap a file to a shared memory.
This request is supposed to follow a VmMemoryRequest::MmapAndRegisterMemory request that
contains SharedMemory that file is mmaped to.
Fields§
§file: File§length: usize§mem_offset: usize§file_offset: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmMemoryFileMapping
impl<'de> Deserialize<'de> for VmMemoryFileMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VmMemoryFileMapping
impl RefUnwindSafe for VmMemoryFileMapping
impl Send for VmMemoryFileMapping
impl Sync for VmMemoryFileMapping
impl Unpin for VmMemoryFileMapping
impl UnwindSafe for VmMemoryFileMapping
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