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.
X86
X86_64
Ppc
Ppc64
Sparc
Arm
Arm64
Mips
Mips64
Unknown(u16)
Implementations
sourceimpl 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) -> Option<u64>
pub fn pointer_width(&self) -> Option<u64>
The native pointer width of this platform
Trait Implementations
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more