pub struct VmMemConfig {
pub gpa: usize,
pub size: usize,
pub flags: usize,
pub map_type: VmMemMappingType,
}
Expand description
A part of AxVMConfig
, which represents a memory region.
Fields§
§gpa: usize
The start address of the memory region in GPA.
size: usize
The size of the memory region.
flags: usize
The mappings flags of the memory region, refers to MappingFlags
provided by axaddrspace
.
map_type: VmMemMappingType
The type of memory mapping.
Trait Implementations§
Source§impl Clone for VmMemConfig
impl Clone for VmMemConfig
Source§fn clone(&self) -> VmMemConfig
fn clone(&self) -> VmMemConfig
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 VmMemConfig
impl Debug for VmMemConfig
Source§impl Default for VmMemConfig
impl Default for VmMemConfig
Source§fn default() -> VmMemConfig
fn default() -> VmMemConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VmMemConfig
impl<'de> Deserialize<'de> for VmMemConfig
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 VmMemConfig
impl RefUnwindSafe for VmMemConfig
impl Send for VmMemConfig
impl Sync for VmMemConfig
impl Unpin for VmMemConfig
impl UnwindSafe for VmMemConfig
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