Enum minidump::system_info::Cpu
source · #[non_exhaustive]pub enum Cpu {
X86,
X86_64,
Ppc,
Ppc64,
Sparc,
Arm,
Arm64,
Mips,
Mips64,
Unknown(u16),
}
Expand description
Known CPU types
This is a slightly nicer layer over the ProcessorArchitecture
enum defined in
the minidump-common crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl Cpu
impl Cpu
sourcepub fn from_processor_architecture(arch: u16) -> Cpu
pub fn from_processor_architecture(arch: u16) -> Cpu
Get a Cpu
value matching the processor_architecture
value from MINIDUMP_SYSTEM_INFO
sourcepub fn pointer_width(&self) -> PointerWidth
pub fn pointer_width(&self) -> PointerWidth
The native pointer width of this platform
Trait Implementations§
impl Copy for Cpu
impl Eq for Cpu
impl StructuralPartialEq for Cpu
Auto Trait Implementations§
impl RefUnwindSafe for Cpu
impl Send for Cpu
impl Sync for Cpu
impl Unpin for Cpu
impl UnwindSafe for Cpu
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