linux_api::prctl

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§

default 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.