Struct unix::process::WaitFlags [−]
pub struct WaitFlags { /* fields omitted */ }
Methods
impl WaitFlags
impl WaitFlags
pub const Exit: WaitFlags
Exit: WaitFlags = WaitFlags{bits: ::libc::WEXITED as usize,}
pub const Stop: WaitFlags
Stop: WaitFlags = WaitFlags{bits: ::libc::WSTOPPED as usize,}
pub const Cont: WaitFlags
Cont: WaitFlags = WaitFlags{bits: ::libc::WCONTINUED as usize,}
pub const NoHang: WaitFlags
NoHang: WaitFlags = WaitFlags{bits: ::libc::WNOHANG as usize,}
pub const NoWait: WaitFlags
NoWait: WaitFlags = WaitFlags{bits: ::libc::WNOWAIT as usize,}
pub fn empty() -> WaitFlags
pub fn empty() -> WaitFlags
Returns an empty set of flags.
pub fn all() -> WaitFlags
pub fn all() -> WaitFlags
Returns the set containing all flags.
pub fn bits(&self) -> usize
pub fn bits(&self) -> usize
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: usize) -> Option<WaitFlags>
pub fn from_bits(bits: usize) -> Option<WaitFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: usize) -> WaitFlags
pub fn from_bits_truncate(bits: usize) -> WaitFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: WaitFlags) -> bool
pub fn intersects(&self, other: WaitFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: WaitFlags) -> bool
pub fn contains(&self, other: WaitFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: WaitFlags)
pub fn insert(&mut self, other: WaitFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: WaitFlags)
pub fn remove(&mut self, other: WaitFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: WaitFlags)
pub fn toggle(&mut self, other: WaitFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: WaitFlags, value: bool)
pub fn set(&mut self, other: WaitFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for WaitFlags
impl Binary for WaitFlags
impl Debug for WaitFlags
impl Debug for WaitFlags
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Clone for WaitFlags
impl Clone for WaitFlags
fn clone(&self) -> WaitFlags
fn clone(&self) -> WaitFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Sub<WaitFlags> for WaitFlags
impl Sub<WaitFlags> for WaitFlags
type Output = WaitFlags
The resulting type after applying the -
operator.
fn sub(self, other: WaitFlags) -> WaitFlags
fn sub(self, other: WaitFlags) -> WaitFlags
Returns the set difference of the two sets of flags.
impl Hash for WaitFlags
impl Hash for WaitFlags
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Extend<WaitFlags> for WaitFlags
impl Extend<WaitFlags> for WaitFlags
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = WaitFlags>,
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = WaitFlags>,
Extends a collection with the contents of an iterator. Read more
impl PartialOrd<WaitFlags> for WaitFlags
impl PartialOrd<WaitFlags> for WaitFlags
fn partial_cmp(&self, other: &WaitFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &WaitFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl BitAnd<WaitFlags> for WaitFlags
impl BitAnd<WaitFlags> for WaitFlags
type Output = WaitFlags
The resulting type after applying the &
operator.
fn bitand(self, other: WaitFlags) -> WaitFlags
fn bitand(self, other: WaitFlags) -> WaitFlags
Returns the intersection between the two sets of flags.
impl LowerHex for WaitFlags
impl LowerHex for WaitFlags
impl BitOrAssign<WaitFlags> for WaitFlags
impl BitOrAssign<WaitFlags> for WaitFlags
fn bitor_assign(&mut self, other: WaitFlags)
fn bitor_assign(&mut self, other: WaitFlags)
Adds the set of flags.
impl BitXorAssign<WaitFlags> for WaitFlags
impl BitXorAssign<WaitFlags> for WaitFlags
fn bitxor_assign(&mut self, other: WaitFlags)
fn bitxor_assign(&mut self, other: WaitFlags)
Toggles the set of flags.
impl Not for WaitFlags
impl Not for WaitFlags
type Output = WaitFlags
The resulting type after applying the !
operator.
fn not(self) -> WaitFlags
fn not(self) -> WaitFlags
Returns the complement of this set of flags.
impl PartialEq<WaitFlags> for WaitFlags
impl PartialEq<WaitFlags> for WaitFlags
fn eq(&self, other: &WaitFlags) -> bool
fn eq(&self, other: &WaitFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WaitFlags) -> bool
fn ne(&self, other: &WaitFlags) -> bool
This method tests for !=
.
impl BitAndAssign<WaitFlags> for WaitFlags
impl BitAndAssign<WaitFlags> for WaitFlags
fn bitand_assign(&mut self, other: WaitFlags)
fn bitand_assign(&mut self, other: WaitFlags)
Disables all flags disabled in the set.
impl Eq for WaitFlags
impl Eq for WaitFlags
impl Copy for WaitFlags
impl Copy for WaitFlags
impl BitXor<WaitFlags> for WaitFlags
impl BitXor<WaitFlags> for WaitFlags
type Output = WaitFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: WaitFlags) -> WaitFlags
fn bitxor(self, other: WaitFlags) -> WaitFlags
Returns the left flags, but with all the right flags toggled.
impl SubAssign<WaitFlags> for WaitFlags
impl SubAssign<WaitFlags> for WaitFlags
fn sub_assign(&mut self, other: WaitFlags)
fn sub_assign(&mut self, other: WaitFlags)
Disables all flags enabled in the set.
impl BitOr<WaitFlags> for WaitFlags
impl BitOr<WaitFlags> for WaitFlags
type Output = WaitFlags
The resulting type after applying the |
operator.
fn bitor(self, other: WaitFlags) -> WaitFlags
fn bitor(self, other: WaitFlags) -> WaitFlags
Returns the union of the two sets of flags.
impl FromIterator<WaitFlags> for WaitFlags
impl FromIterator<WaitFlags> for WaitFlags
fn from_iter<T>(iterator: T) -> WaitFlags where
T: IntoIterator<Item = WaitFlags>,
fn from_iter<T>(iterator: T) -> WaitFlags where
T: IntoIterator<Item = WaitFlags>,
Creates a value from an iterator. Read more
impl UpperHex for WaitFlags
impl UpperHex for WaitFlags
impl Octal for WaitFlags
impl Octal for WaitFlags