#[repr(usize)]pub enum ArchPrctlCmd {
SetGS = 4_097,
SetFS = 4_098,
GetFS = 4_099,
GetGS = 4_100,
}Expand description
Architecture-specific command for the arch_prctl syscall.
Variants§
SetGS = 4_097
Set Per-CPU base
SetFS = 4_098
Set Thread Local Storage (TLS) base
GetFS = 4_099
Get Thread Local Storage (TLS) base
GetGS = 4_100
Get Per-CPU base
Trait Implementations§
Source§impl Clone for ArchPrctlCmd
impl Clone for ArchPrctlCmd
Source§fn clone(&self) -> ArchPrctlCmd
fn clone(&self) -> ArchPrctlCmd
Returns a duplicate 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 ArchPrctlCmd
impl Debug for ArchPrctlCmd
Source§impl TryFrom<usize> for ArchPrctlCmd
impl TryFrom<usize> for ArchPrctlCmd
Source§type Error = TryFromPrimitiveError<ArchPrctlCmd>
type Error = TryFromPrimitiveError<ArchPrctlCmd>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ArchPrctlCmd
impl TryFromPrimitive for ArchPrctlCmd
const NAME: &'static str = "ArchPrctlCmd"
type Primitive = usize
type Error = TryFromPrimitiveError<ArchPrctlCmd>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ArchPrctlCmd
impl RefUnwindSafe for ArchPrctlCmd
impl Send for ArchPrctlCmd
impl Sync for ArchPrctlCmd
impl Unpin for ArchPrctlCmd
impl UnwindSafe for ArchPrctlCmd
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