pub enum BlockingIoInterest {
Read,
Write,
ReadWrite,
}Expand description
An I/O interest for a blocked thread. Note that all threads are always considered to be interested in “error” events.
Variants§
Read
The blocked thread is interested in [Interest::READABLE].
Write
The blocked thread is interested in [Interest::WRITABLE].
ReadWrite
The blocked thread is interested in [Interest::READABLE] and
[Interest::WRITABLE].
Implementations§
Source§impl BlockingIoInterest
impl BlockingIoInterest
Sourcefn is_fulfilled_by(&self, readiness: &Readiness) -> bool
fn is_fulfilled_by(&self, readiness: &Readiness) -> bool
Check whether the Readiness fulfills this blocking I/O interest.
This function also returns true if the error readiness is set
even when the requested interest might not be fulfilled.
Trait Implementations§
Source§impl Clone for BlockingIoInterest
impl Clone for BlockingIoInterest
Source§fn clone(&self) -> BlockingIoInterest
fn clone(&self) -> BlockingIoInterest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BlockingIoInterest
Auto Trait Implementations§
impl DynSend for BlockingIoInterest
impl DynSync for BlockingIoInterest
impl Freeze for BlockingIoInterest
impl RefUnwindSafe for BlockingIoInterest
impl Send for BlockingIoInterest
impl Sync for BlockingIoInterest
impl Unpin for BlockingIoInterest
impl UnsafeUnpin for BlockingIoInterest
impl UnwindSafe for BlockingIoInterest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Read: 0 bytesWrite: 0 bytesReadWrite: 0 bytes