#[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 copy of the value. Read more
1.0.0§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§fn try_from(number: usize) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: usize) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)