#[non_exhaustive]#[repr(C)]pub enum SigbusCode {
ADRALN = 0,
ADDERR = 1,
OBJERR = 2,
MCEERR_AR = 3,
MCEERR_AO = 4,
}
Expand description
Subtype code for SIGBUS.
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.
ADRALN = 0
Invalid address alignment.
ADDERR = 1
Nonexistent physical address.
OBJERR = 2
Object-specific hardware error.
MCEERR_AR = 3
Hardware memory error consumed on a machine check; action required.
MCEERR_AO = 4
Hardware memory error detected in process but not consumed; action optional.
Trait Implementations§
Source§impl Clone for SigbusCode
impl Clone for SigbusCode
Source§fn clone(&self) -> SigbusCode
fn clone(&self) -> SigbusCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SigbusCode
impl Debug for SigbusCode
Source§impl Hash for SigbusCode
impl Hash for SigbusCode
Source§impl Ord for SigbusCode
impl Ord for SigbusCode
Source§fn cmp(&self, other: &SigbusCode) -> Ordering
fn cmp(&self, other: &SigbusCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SigbusCode
impl PartialEq for SigbusCode
Source§impl PartialOrd for SigbusCode
impl PartialOrd for SigbusCode
impl Copy for SigbusCode
impl Eq for SigbusCode
impl StructuralPartialEq for SigbusCode
Auto Trait Implementations§
impl Freeze for SigbusCode
impl RefUnwindSafe for SigbusCode
impl Send for SigbusCode
impl Sync for SigbusCode
impl Unpin for SigbusCode
impl UnwindSafe for SigbusCode
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