Enum PrctlMCEKillPolicy

#[repr(i32)]
#[non_exhaustive]
pub enum PrctlMCEKillPolicy

The type of hardware memory corruption kill policy for the thread.

Variants

PR_MCE_KILL_EARLY = libc::PR_MCE_KILL_EARLY

The thread will receive SIGBUS as soon as a memory corruption is detected.

PR_MCE_KILL_LATE = libc::PR_MCE_KILL_LATE

The process is killed only when it accesses a corrupted page.

PR_MCE_KILL_DEFAULT = libc::PR_MCE_KILL_DEFAULT

Uses the system-wide default.

Trait Implementations

impl Clone for PrctlMCEKillPolicy

fn clone(&self) -> Self

impl Copy for PrctlMCEKillPolicy

impl Debug for PrctlMCEKillPolicy

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for PrctlMCEKillPolicy

impl Hash for PrctlMCEKillPolicy

fn hash<__H: Hasher>(&self, state: &mut __H)

impl Ord for PrctlMCEKillPolicy

fn cmp(&self, other: &Self) -> Ordering

impl PartialEq for PrctlMCEKillPolicy

fn eq(&self, other: &Self) -> bool

impl PartialOrd for PrctlMCEKillPolicy

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

impl StructuralPartialEq for PrctlMCEKillPolicy

impl TryFrom<i32> for PrctlMCEKillPolicy

type Error = Errno;
fn try_from(x: i32) -> Result<Self>

Auto Trait Implementations

impl Freeze for PrctlMCEKillPolicy

impl RefUnwindSafe for PrctlMCEKillPolicy

impl Send for PrctlMCEKillPolicy

impl Sync for PrctlMCEKillPolicy

impl Unpin for PrctlMCEKillPolicy

impl UnsafeUnpin for PrctlMCEKillPolicy

impl UnwindSafe for PrctlMCEKillPolicy

Blanket Implementations

impl<T> Any for PrctlMCEKillPolicy where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for PrctlMCEKillPolicy where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for PrctlMCEKillPolicy where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for PrctlMCEKillPolicy where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for PrctlMCEKillPolicy

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for PrctlMCEKillPolicy where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for PrctlMCEKillPolicy where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for PrctlMCEKillPolicy where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for PrctlMCEKillPolicy where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>