[][src]Struct linux_futex::op::Cmp

pub struct Cmp { /* fields omitted */ }

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.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.