Struct rux::fcntl::FdFlag
[−]
[src]
pub struct FdFlag { /* fields omitted */ }
Methods
impl FdFlag
[src]
fn empty() -> FdFlag
Returns an empty set of flags.
fn all() -> FdFlag
Returns the set containing all flags.
fn bits(&self) -> i32
Returns the raw value of the flags currently stored.
fn from_bits(bits: i32) -> Option<FdFlag>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: i32) -> FdFlag
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: FdFlag) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: FdFlag) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: FdFlag)
Inserts the specified flags in-place.
fn remove(&mut self, other: FdFlag)
Removes the specified flags in-place.
fn toggle(&mut self, other: FdFlag)
Toggles the specified flags in-place.
Trait Implementations
impl Clone for FdFlag
[src]
fn clone(&self) -> FdFlag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialOrd<FdFlag> for FdFlag
[src]
fn partial_cmp(&self, __arg_0: &FdFlag) -> Option<Ordering>
fn lt(&self, __arg_0: &FdFlag) -> bool
fn le(&self, __arg_0: &FdFlag) -> bool
fn gt(&self, __arg_0: &FdFlag) -> bool
fn ge(&self, __arg_0: &FdFlag) -> bool
impl BitOr<FdFlag> for FdFlag
[src]
type Output = FdFlag
fn bitor(self, other: FdFlag) -> FdFlag
Returns the union of the two sets of flags.
impl Copy for FdFlag
[src]
impl Ord for FdFlag
[src]
impl PartialEq<FdFlag> for FdFlag
[src]
impl Sub<FdFlag> for FdFlag
[src]
type Output = FdFlag
fn sub(self, other: FdFlag) -> FdFlag
Returns the set difference of the two sets of flags.
impl BitAnd<FdFlag> for FdFlag
[src]
type Output = FdFlag
fn bitand(self, other: FdFlag) -> FdFlag
Returns the intersection between the two sets of flags.
impl BitXor<FdFlag> for FdFlag
[src]
type Output = FdFlag
fn bitxor(self, other: FdFlag) -> FdFlag
Returns the left flags, but with all the right flags toggled.
impl Eq for FdFlag
[src]
impl FromIterator<FdFlag> for FdFlag
[src]
fn from_iter<T>(iterator: T) -> FdFlag where
T: IntoIterator<Item = FdFlag>,
T: IntoIterator<Item = FdFlag>,