pub struct MMapExtension {
pub map: HashMap<String, u64>,
pub vm_flags: VmFlags,
}
Expand description
Represents the information about a specific mapping as presented in /proc/<pid>/smaps
Fields§
§map: HashMap<String, u64>
Key-value pairs that may represent statistics about memory usage, or other interesting things, such a “ProtectionKey” (if you’re on X86 and that kernel config option was specified).
Note that should a key-value pair represent a memory usage statistic, it will be in bytes.
Check your manpage for more information
vm_flags: VmFlags
Kernel flags associated with the virtual memory area
(since Linux 3.8)
Implementations§
Trait Implementations§
source§impl Clone for MMapExtension
impl Clone for MMapExtension
source§fn clone(&self) -> MMapExtension
fn clone(&self) -> MMapExtension
Returns a copy 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 MMapExtension
impl Debug for MMapExtension
source§impl Default for MMapExtension
impl Default for MMapExtension
source§fn default() -> MMapExtension
fn default() -> MMapExtension
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MMapExtension
impl<'de> Deserialize<'de> for MMapExtension
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
source§impl PartialEq for MMapExtension
impl PartialEq for MMapExtension
source§impl Serialize for MMapExtension
impl Serialize for MMapExtension
impl Eq for MMapExtension
impl StructuralPartialEq for MMapExtension
Auto Trait Implementations§
impl Freeze for MMapExtension
impl RefUnwindSafe for MMapExtension
impl Send for MMapExtension
impl Sync for MMapExtension
impl Unpin for MMapExtension
impl UnwindSafe for MMapExtension
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)