pub enum PollMode {
Readable,
Writable,
ReadAndWritable,
}
Expand description
The kind of operation that one want to poll for.
Variants§
Readable
Check if the stream is readable, i.e. there is pending data to be read.
Writable
Check if the stream is writable, i.e. some data could be successfully written to it.
ReadAndWritable
Check for both readability and writability.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PollMode
impl RefUnwindSafe for PollMode
impl Send for PollMode
impl Sync for PollMode
impl Unpin for PollMode
impl UnwindSafe for PollMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)