#[non_exhaustive]#[repr(C)]pub enum SigsegvCode {
MAPERR = 0,
ACCERR = 1,
BNDERR = 2,
PKUERR = 3,
}
Expand description
Subtype code for SIGSEGV.
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.
MAPERR = 0
Address not mapped to object.
ACCERR = 1
Invalid permissions for mapped object.
BNDERR = 2
Failed address bound checks.
PKUERR = 3
Access was denied by memory protection keys.
Trait Implementations§
Source§impl Clone for SigsegvCode
impl Clone for SigsegvCode
Source§fn clone(&self) -> SigsegvCode
fn clone(&self) -> SigsegvCode
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 SigsegvCode
impl Debug for SigsegvCode
Source§impl Hash for SigsegvCode
impl Hash for SigsegvCode
Source§impl Ord for SigsegvCode
impl Ord for SigsegvCode
Source§fn cmp(&self, other: &SigsegvCode) -> Ordering
fn cmp(&self, other: &SigsegvCode) -> 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 SigsegvCode
impl PartialEq for SigsegvCode
Source§impl PartialOrd for SigsegvCode
impl PartialOrd for SigsegvCode
impl Copy for SigsegvCode
impl Eq for SigsegvCode
impl StructuralPartialEq for SigsegvCode
Auto Trait Implementations§
impl Freeze for SigsegvCode
impl RefUnwindSafe for SigsegvCode
impl Send for SigsegvCode
impl Sync for SigsegvCode
impl Unpin for SigsegvCode
impl UnwindSafe for SigsegvCode
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