pub struct MemoryRegion_<K: MemoryRegionKind> {
pub guest_region: Range<usize>,
pub host_region: Range<K::HostBaseType>,
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<K::HostBaseType>the range of host memory addresses
Note that Range<()> = () x () = ().
flags: MemoryRegionFlagsmemory access flags for the given region
region_type: MemoryRegionTypethe type of memory region
Trait Implementations§
Source§impl<K: Clone + MemoryRegionKind> Clone for MemoryRegion_<K>where
K::HostBaseType: Clone,
impl<K: Clone + MemoryRegionKind> Clone for MemoryRegion_<K>where
K::HostBaseType: Clone,
Source§fn clone(&self) -> MemoryRegion_<K>
fn clone(&self) -> MemoryRegion_<K>
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<K: Debug + MemoryRegionKind> Debug for MemoryRegion_<K>where
K::HostBaseType: Debug,
impl<K: Debug + MemoryRegionKind> Debug for MemoryRegion_<K>where
K::HostBaseType: Debug,
Source§impl From<&MemoryRegion_<HostGuestMemoryRegion>> for kvm_userspace_memory_region
Available on kvm only.
impl From<&MemoryRegion_<HostGuestMemoryRegion>> for kvm_userspace_memory_region
Available on
kvm only.Source§fn from(region: &MemoryRegion) -> Self
fn from(region: &MemoryRegion) -> Self
Converts to this type from the input type.
Source§impl From<&MemoryRegion_<HostGuestMemoryRegion>> for mshv_user_mem_region
Available on mshv3 only.
impl From<&MemoryRegion_<HostGuestMemoryRegion>> for mshv_user_mem_region
Available on
mshv3 only.Source§fn from(region: &MemoryRegion) -> Self
fn from(region: &MemoryRegion) -> Self
Converts to this type from the input type.
Source§impl<K: Hash + MemoryRegionKind> Hash for MemoryRegion_<K>where
K::HostBaseType: Hash,
impl<K: Hash + MemoryRegionKind> Hash for MemoryRegion_<K>where
K::HostBaseType: Hash,
Source§impl<K: PartialEq + MemoryRegionKind> PartialEq for MemoryRegion_<K>where
K::HostBaseType: PartialEq,
impl<K: PartialEq + MemoryRegionKind> PartialEq for MemoryRegion_<K>where
K::HostBaseType: PartialEq,
impl<K: Eq + MemoryRegionKind> Eq for MemoryRegion_<K>where
K::HostBaseType: Eq,
impl<K: MemoryRegionKind> StructuralPartialEq for MemoryRegion_<K>
Auto Trait Implementations§
impl<K> Freeze for MemoryRegion_<K>
impl<K> RefUnwindSafe for MemoryRegion_<K>
impl<K> Send for MemoryRegion_<K>
impl<K> Sync for MemoryRegion_<K>
impl<K> Unpin for MemoryRegion_<K>
impl<K> UnsafeUnpin for MemoryRegion_<K>
impl<K> UnwindSafe for MemoryRegion_<K>
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