#[non_exhaustive]#[repr(i32)]pub enum PrctlMCEKillPolicy {
PR_MCE_KILL_EARLY = 1,
PR_MCE_KILL_LATE = 0,
PR_MCE_KILL_DEFAULT = 2,
}
Expand description
The type of hardware memory corruption kill policy for the thread.
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.
PR_MCE_KILL_EARLY = 1
The thread will receive SIGBUS as soon as a memory corruption is detected.
PR_MCE_KILL_LATE = 0
The process is killed only when it accesses a corrupted page.
PR_MCE_KILL_DEFAULT = 2
Uses the system-wide default.
Trait Implementations§
source§impl Clone for PrctlMCEKillPolicy
impl Clone for PrctlMCEKillPolicy
source§fn clone(&self) -> PrctlMCEKillPolicy
fn clone(&self) -> PrctlMCEKillPolicy
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 PrctlMCEKillPolicy
impl Debug for PrctlMCEKillPolicy
source§impl Hash for PrctlMCEKillPolicy
impl Hash for PrctlMCEKillPolicy
source§impl Ord for PrctlMCEKillPolicy
impl Ord for PrctlMCEKillPolicy
source§fn cmp(&self, other: &PrctlMCEKillPolicy) -> Ordering
fn cmp(&self, other: &PrctlMCEKillPolicy) -> 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 PrctlMCEKillPolicy
impl PartialEq for PrctlMCEKillPolicy
source§impl PartialOrd for PrctlMCEKillPolicy
impl PartialOrd for PrctlMCEKillPolicy
source§impl TryFrom<i32> for PrctlMCEKillPolicy
impl TryFrom<i32> for PrctlMCEKillPolicy
impl Copy for PrctlMCEKillPolicy
impl Eq for PrctlMCEKillPolicy
impl StructuralPartialEq for PrctlMCEKillPolicy
Auto Trait Implementations§
impl Freeze for PrctlMCEKillPolicy
impl RefUnwindSafe for PrctlMCEKillPolicy
impl Send for PrctlMCEKillPolicy
impl Sync for PrctlMCEKillPolicy
impl Unpin for PrctlMCEKillPolicy
impl UnwindSafe for PrctlMCEKillPolicy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)