Struct minidump::MinidumpLinuxCpuInfo
source · pub struct MinidumpLinuxCpuInfo<'a> { /* private fields */ }
Expand description
Interesting values extracted from /proc/cpuinfo
Implementations§
source§impl<'a> MinidumpLinuxCpuInfo<'a>
impl<'a> MinidumpLinuxCpuInfo<'a>
sourcepub fn iter(&self) -> impl Iterator<Item = (&'a LinuxOsStr, &'a LinuxOsStr)>
pub fn iter(&self) -> impl Iterator<Item = (&'a LinuxOsStr, &'a LinuxOsStr)>
Get an iterator over the key-value pairs stored in the /proc/cpuinfo
dump.
Keys and values are trim
ed of leading/trailing spaces, and if a key
or value was surrounded by quotes (“like this”), the quotes will be
stripped.
Trait Implementations§
source§impl<'a> Debug for MinidumpLinuxCpuInfo<'a>
impl<'a> Debug for MinidumpLinuxCpuInfo<'a>
source§impl<'a> Default for MinidumpLinuxCpuInfo<'a>
impl<'a> Default for MinidumpLinuxCpuInfo<'a>
source§fn default() -> MinidumpLinuxCpuInfo<'a>
fn default() -> MinidumpLinuxCpuInfo<'a>
Returns the “default value” for a type. Read more
source§impl<'a> MinidumpStream<'a> for MinidumpLinuxCpuInfo<'a>
impl<'a> MinidumpStream<'a> for MinidumpLinuxCpuInfo<'a>
source§const STREAM_TYPE: u32 = 1_197_932_547u32
const STREAM_TYPE: u32 = 1_197_932_547u32
The stream type constant used in the
md::MDRawDirectory
entry.
This is usually a MINIDUMP_STREAM_TYPE but it’s left as a u32
to allow external projects to add support for their own custom streams.Auto Trait Implementations§
impl<'a> Freeze for MinidumpLinuxCpuInfo<'a>
impl<'a> RefUnwindSafe for MinidumpLinuxCpuInfo<'a>
impl<'a> Send for MinidumpLinuxCpuInfo<'a>
impl<'a> Sync for MinidumpLinuxCpuInfo<'a>
impl<'a> Unpin for MinidumpLinuxCpuInfo<'a>
impl<'a> UnwindSafe for MinidumpLinuxCpuInfo<'a>
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