[][src]Struct heliograph::Sem

pub struct Sem(_);

A semaphore on which one can do an operation

Implementations

impl Sem[src]

pub fn op(&self, v: c_short) -> SemOp[src]

Create a semaphore operation doing op

Usually, it is better to use one of the other functions of this type.

See man 2 semop for more details about the semantics here

pub fn add(&self, v: c_short) -> SemOp[src]

Create a semaphore operation adding v to the semaphore

Panics

Panics if v is not strictly positive

pub fn remove(&self, v: c_short) -> SemOp[src]

Create a semaphore operation removing v from the semaphore

Panics

Panics if v is not strictly positive

pub fn wait_zero(&self) -> SemOp[src]

Create a semaphore operation waiting for this semaphore to be zero

Auto Trait Implementations

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, 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.