pub struct MemoryRegion {
pub guest_region: Range<usize>,
pub host_region: Range<usize>,
pub flags: MemoryRegionFlags,
pub region_type: MemoryRegionType,
}
Expand description
represents a single memory region inside the guest. All memory within a region has the same memory permissions
Fields§
§guest_region: Range<usize>
the range of guest memory addresses
host_region: Range<usize>
the range of host memory addresses
flags: MemoryRegionFlags
memory access flags for the given region
region_type: MemoryRegionType
the type of memory region
Trait Implementations§
Source§impl Clone for MemoryRegion
impl Clone for MemoryRegion
Source§fn clone(&self) -> MemoryRegion
fn clone(&self) -> MemoryRegion
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 moreSource§impl Debug for MemoryRegion
impl Debug for MemoryRegion
Source§impl From<MemoryRegion> for kvm_userspace_memory_region
impl From<MemoryRegion> for kvm_userspace_memory_region
Source§fn from(region: MemoryRegion) -> Self
fn from(region: MemoryRegion) -> Self
Converts to this type from the input type.
Source§impl From<MemoryRegion> for mshv_user_mem_region
impl From<MemoryRegion> for mshv_user_mem_region
Source§fn from(region: MemoryRegion) -> Self
fn from(region: MemoryRegion) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryRegion
impl Hash for MemoryRegion
Source§impl PartialEq for MemoryRegion
impl PartialEq for MemoryRegion
impl Eq for MemoryRegion
impl StructuralPartialEq for MemoryRegion
Auto Trait Implementations§
impl Freeze for MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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