pub enum LinuxProcessMemoryReader {
Fast {
pid: Pid,
},
Slow {
file: File,
},
}Expand description
The memory reader for the process
This concrete type is used for easier generic trait implementation
in the coredump module.
Variants§
Fast
A fast process memory reader employing the process_vm_readv system call
available on Linux 3.2+. It might be disabled on some systems in the kernel configuration.
Slow
A slow but more compatible process memory reader, uses the /proc/<pid>/mem
file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxProcessMemoryReader
impl RefUnwindSafe for LinuxProcessMemoryReader
impl Send for LinuxProcessMemoryReader
impl Sync for LinuxProcessMemoryReader
impl Unpin for LinuxProcessMemoryReader
impl UnsafeUnpin for LinuxProcessMemoryReader
impl UnwindSafe for LinuxProcessMemoryReader
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