Struct PrctlOp

Source
pub struct PrctlOp(/* private fields */);
Expand description

Options for man 2 prctl.

Implementations§

Source§

impl PrctlOp

Source

pub const PR_SET_PDEATHSIG: Self

Source

pub const PR_GET_PDEATHSIG: Self

Source

pub const PR_GET_DUMPABLE: Self

Source

pub const PR_SET_DUMPABLE: Self

Source

pub const PR_GET_UNALIGN: Self

Source

pub const PR_SET_UNALIGN: Self

Source

pub const PR_GET_KEEPCAPS: Self

Source

pub const PR_SET_KEEPCAPS: Self

Source

pub const PR_GET_FPEMU: Self

Source

pub const PR_SET_FPEMU: Self

Source

pub const PR_GET_FPEXC: Self

Source

pub const PR_SET_FPEXC: Self

Source

pub const PR_GET_TIMING: Self

Source

pub const PR_SET_TIMING: Self

Source

pub const PR_SET_NAME: Self

Source

pub const PR_GET_NAME: Self

Source

pub const PR_GET_ENDIAN: Self

Source

pub const PR_SET_ENDIAN: Self

Source

pub const PR_GET_SECCOMP: Self

Source

pub const PR_SET_SECCOMP: Self

Source

pub const PR_CAPBSET_READ: Self

Source

pub const PR_CAPBSET_DROP: Self

Source

pub const PR_GET_TSC: Self

Source

pub const PR_SET_TSC: Self

Source

pub const PR_GET_SECUREBITS: Self

Source

pub const PR_SET_SECUREBITS: Self

Source

pub const PR_SET_TIMERSLACK: Self

Source

pub const PR_GET_TIMERSLACK: Self

Source

pub const PR_TASK_PERF_EVENTS_DISABLE: Self

Source

pub const PR_TASK_PERF_EVENTS_ENABLE: Self

Source

pub const PR_MCE_KILL: Self

Source

pub const PR_SET_MM: Self

Source

pub const PR_MCE_KILL_GET: Self

Source

pub const PR_SET_PTRACER: Self

Source

pub const PR_SET_CHILD_SUBREAPER: Self

Source

pub const PR_GET_CHILD_SUBREAPER: Self

Source

pub const PR_SET_NO_NEW_PRIVS: Self

Source

pub const PR_GET_NO_NEW_PRIVS: Self

Source

pub const PR_GET_TID_ADDRESS: Self

Source

pub const PR_SET_THP_DISABLE: Self

Source

pub const PR_GET_THP_DISABLE: Self

Source

pub const PR_MPX_ENABLE_MANAGEMENT: Self

Source

pub const PR_MPX_DISABLE_MANAGEMENT: Self

Source

pub const PR_SET_FP_MODE: Self

Source

pub const PR_GET_FP_MODE: Self

Source

pub const PR_CAP_AMBIENT: Self

Source

pub const PR_SVE_SET_VL: Self

Source

pub const PR_SVE_GET_VL: Self

Source

pub const PR_GET_SPECULATION_CTRL: Self

Source

pub const PR_SET_SPECULATION_CTRL: Self

Source

pub const PR_PAC_RESET_KEYS: Self

Source

pub const PR_SET_TAGGED_ADDR_CTRL: Self

Source

pub const PR_GET_TAGGED_ADDR_CTRL: Self

Source

pub const PR_SET_IO_FLUSHER: Self

Source

pub const PR_GET_IO_FLUSHER: Self

Source

pub const PR_SET_SYSCALL_USER_DISPATCH: Self

Source

pub const PR_PAC_SET_ENABLED_KEYS: Self

Source

pub const PR_PAC_GET_ENABLED_KEYS: Self

Source

pub const PR_SCHED_CORE: Self

Source

pub const PR_SME_SET_VL: Self

Source

pub const PR_SME_GET_VL: Self

Source

pub const PR_SET_MDWE: Self

Source

pub const PR_GET_MDWE: Self

Source

pub const PR_SET_VMA: Self

Source

pub const PR_GET_AUXV: Self

Source

pub const PR_SET_MEMORY_MERGE: Self

Source

pub const PR_GET_MEMORY_MERGE: Self

Source

pub const PR_RISCV_V_SET_CONTROL: Self

Source

pub const PR_RISCV_V_GET_CONTROL: Self

Source

pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: Self

Source

pub const PR_PPC_GET_DEXCR: Self

Source

pub const PR_PPC_SET_DEXCR: Self

Source

pub const fn new(val: i32) -> Self

Source

pub const fn val(&self) -> i32

Source

pub const fn to_str(&self) -> Option<&'static str>

Trait Implementations§

Source§

impl Debug for PrctlOp

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for PrctlOp

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<PrctlOp> for i32

Source§

fn from(val: PrctlOp) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for PrctlOp

Source§

fn from(val: i32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for PrctlOp

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for PrctlOp

Source§

impl StructuralPartialEq for PrctlOp

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.