[−][src]Struct linux_futex::op::Cmp
The comparison wake_op
applies to the old value of the second futex.
A Cmp
must be combined with an Op
by using the plus operator. For
example: Op::assign(1) + Cmp::eq(0)
The argument to any comparison must be below 1 << 12
(= 4096).
Implementations
impl Cmp
[src]
pub fn eq(value: u32) -> Self
[src]
Check if the old value of the futex equals this value.
pub fn ne(value: u32) -> Self
[src]
Check if the old value of the futex does not equal this value.
pub fn lt(value: u32) -> Self
[src]
Check if the old value of the futex is less than this value.
pub fn le(value: u32) -> Self
[src]
Check if the old value of the futex is less than or equal to this value.
pub fn gt(value: u32) -> Self
[src]
Check if the old value of the futex is greater than this value.
pub fn ge(value: u32) -> Self
[src]
Check if the old value of the futex is greater than or equal to this value.
Trait Implementations
impl Add<Cmp> for Op
[src]
type Output = OpAndCmp
The resulting type after applying the +
operator.
fn add(self, cmp: Cmp) -> OpAndCmp
[src]
impl Clone for Cmp
[src]
impl Copy for Cmp
[src]
impl Debug for Cmp
[src]
impl Eq for Cmp
[src]
impl PartialEq<Cmp> for Cmp
[src]
impl StructuralEq for Cmp
[src]
impl StructuralPartialEq for Cmp
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cmp
impl Send for Cmp
impl Sync for Cmp
impl Unpin for Cmp
impl UnwindSafe for Cmp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,