pub struct Opts { /* private fields */ }Expand description
Implementations§
Source§impl Opts
impl Opts
pub const ERR: Opts
Sourcepub const HUP: Opts
pub const HUP: Opts
Hangup. If you register for another event type, this is automatically enabled
pub const ONESHOT: Opts
pub const WAKEUP: Opts
Sourcepub fn from_bits(bits: c_uint) -> Option<Opts>
pub fn from_bits(bits: c_uint) -> Option<Opts>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: c_uint) -> Opts
pub const fn from_bits_truncate(bits: c_uint) -> Opts
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: c_uint) -> Opts
pub const unsafe fn from_bits_unchecked(bits: c_uint) -> Opts
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Opts) -> bool
pub const fn intersects(&self, other: Opts) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for Opts
impl BitAndAssign for Opts
Source§fn bitand_assign(&mut self, other: Opts)
fn bitand_assign(&mut self, other: Opts)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Opts
impl BitOrAssign for Opts
Source§fn bitor_assign(&mut self, other: Opts)
fn bitor_assign(&mut self, other: Opts)
Adds the set of flags.
Source§impl BitXorAssign for Opts
impl BitXorAssign for Opts
Source§fn bitxor_assign(&mut self, other: Opts)
fn bitxor_assign(&mut self, other: Opts)
Toggles the set of flags.
Source§impl Extend<Opts> for Opts
impl Extend<Opts> for Opts
Source§fn extend<T: IntoIterator<Item = Opts>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Opts>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Opts> for Opts
impl FromIterator<Opts> for Opts
Source§impl Ord for Opts
impl Ord for Opts
Source§impl PartialOrd for Opts
impl PartialOrd for Opts
Source§impl SubAssign for Opts
impl SubAssign for Opts
Source§fn sub_assign(&mut self, other: Opts)
fn sub_assign(&mut self, other: Opts)
Disables all flags enabled in the set.
impl Copy for Opts
impl Eq for Opts
impl StructuralPartialEq for Opts
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more