#[non_exhaustive]#[repr(u32)]pub enum membarrier_cmd {
MEMBARRIER_CMD_QUERY = 0,
MEMBARRIER_CMD_GLOBAL = 1,
MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2,
MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4,
MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8,
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16,
MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32,
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64,
MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128,
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256,
MEMBARRIER_CMD_GET_REGISTRATIONS = 512,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MEMBARRIER_CMD_QUERY = 0
MEMBARRIER_CMD_GLOBAL = 1
MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2
MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4
MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16
MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64
MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256
MEMBARRIER_CMD_GET_REGISTRATIONS = 512
Implementations§
Source§impl membarrier_cmd
impl membarrier_cmd
pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL
Trait Implementations§
Source§impl Clone for membarrier_cmd
impl Clone for membarrier_cmd
Source§fn clone(&self) -> membarrier_cmd
fn clone(&self) -> membarrier_cmd
Returns a copy 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 membarrier_cmd
impl Debug for membarrier_cmd
Source§impl Hash for membarrier_cmd
impl Hash for membarrier_cmd
Source§impl PartialEq for membarrier_cmd
impl PartialEq for membarrier_cmd
impl Copy for membarrier_cmd
impl Eq for membarrier_cmd
impl StructuralPartialEq for membarrier_cmd
Auto Trait Implementations§
impl Freeze for membarrier_cmd
impl RefUnwindSafe for membarrier_cmd
impl Send for membarrier_cmd
impl Sync for membarrier_cmd
impl Unpin for membarrier_cmd
impl UnwindSafe for membarrier_cmd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
MEMBARRIER_CMD_QUERY
: 0 bytesMEMBARRIER_CMD_GLOBAL
: 0 bytesMEMBARRIER_CMD_GLOBAL_EXPEDITED
: 0 bytesMEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED
: 0 bytesMEMBARRIER_CMD_PRIVATE_EXPEDITED
: 0 bytesMEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED
: 0 bytesMEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE
: 0 bytesMEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
: 0 bytesMEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
: 0 bytesMEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
: 0 bytesMEMBARRIER_CMD_GET_REGISTRATIONS
: 0 bytes