pub struct IoCondition { /* private fields */ }
Expand description
A bitwise combination representing a condition to watch for on an event source.
Implementations§
Source§impl IoCondition
impl IoCondition
Sourcepub fn new() -> IoCondition
pub fn new() -> IoCondition
Creates a new bit set with no interest bits set.
Sourcepub fn input(&mut self, input: bool) -> &mut IoCondition
pub fn input(&mut self, input: bool) -> &mut IoCondition
Flag indicating that data is ready to read.
Sourcepub fn output(&mut self, output: bool) -> &mut IoCondition
pub fn output(&mut self, output: bool) -> &mut IoCondition
Flag indicating that data can be written.
Sourcepub fn is_hang_up(&self) -> bool
pub fn is_hang_up(&self) -> bool
Tests whether this condition indicates hang up
Sourcepub fn is_not_open(&self) -> bool
pub fn is_not_open(&self) -> bool
Tests whether this condition indicates not opened
Trait Implementations§
Source§impl Clone for IoCondition
impl Clone for IoCondition
Source§fn clone(&self) -> IoCondition
fn clone(&self) -> IoCondition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for IoCondition
impl RefUnwindSafe for IoCondition
impl Send for IoCondition
impl Sync for IoCondition
impl Unpin for IoCondition
impl UnwindSafe for IoCondition
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