[−][src]Struct heliograph::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]
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
impl RefUnwindSafe for Sem
[src]
impl Send for Sem
[src]
impl Sync for Sem
[src]
impl Unpin for Sem
[src]
impl UnwindSafe for Sem
[src]
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,
pub 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, 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.
pub 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>,