pub enum MMapPath {
Path(PathBuf),
Heap,
Stack,
TStack(u32),
Vdso,
Vvar,
Vsyscall,
Rollup,
Anonymous,
Vsys(i32),
Other(String),
}
Variants§
Path(PathBuf)
The file that is backing the mapping.
Heap
The process’s heap.
Stack
The initial process’s (also known as the main thread’s) stack.
TStack(u32)
A thread’s stack (where the <tid>
is a thread ID). It corresponds to the
/proc/<pid>/task/<tid>/
path.
(since Linux 3.4)
Vdso
The virtual dynamically linked shared object.
Vvar
Shared kernel variables
Vsyscall
obsolete virtual syscalls, succeeded by vdso
Rollup
rollup memory mappings, from /proc/<pid>/smaps_rollup
Anonymous
An anonymous mapping as obtained via mmap(2).
Vsys(i32)
Shared memory segment. The i32 value corresponds to Shm.key, while MemoryMap.inode corresponds to Shm.shmid
Other(String)
Some other pseudo-path
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for MMapPath
impl<'de> Deserialize<'de> for MMapPath
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MMapPath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MMapPath, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for MMapPath
impl Serialize for MMapPath
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MMapPath
impl StructuralPartialEq for MMapPath
Auto Trait Implementations§
impl Freeze for MMapPath
impl RefUnwindSafe for MMapPath
impl Send for MMapPath
impl Sync for MMapPath
impl Unpin for MMapPath
impl UnwindSafe for MMapPath
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
)