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<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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.