Struct linux_futex::op::Op
source · pub struct Op { /* private fields */ }
Expand description
Implementations§
source§impl Op
impl Op
sourcepub fn and_not(arg: u32) -> Self
pub fn and_not(arg: u32) -> Self
Bitwise-and the futex value with the bitwise complement of the argument: value &= !arg
sourcepub fn assign_bit(bit: u32) -> Self
pub fn assign_bit(bit: u32) -> Self
Assign 1 << bit
to the futex value: value = 1 << bit
sourcepub fn clear_bit(bit: u32) -> Self
pub fn clear_bit(bit: u32) -> Self
Clear the bit
th bit of the futex value: value &= !(1 << bit)
sourcepub fn toggle_bit(bit: u32) -> Self
pub fn toggle_bit(bit: u32) -> Self
Toggle the bit
th bit of the futex value: value ^= 1 << bit
Trait Implementations§
impl Copy for Op
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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