Enum pal_async::interest::InterestSlot
source · pub enum InterestSlot {
Read = 0,
Write = 1,
}
Expand description
The interest slot.
Sockets, fds, and waits can have multiple concurrent outstanding polls, allowing a read and write operation to be polled concurrently, for example. This enum is used to distinguish between the multiple polling operations.
Although they are called Read
and Write
, this is just a convention, and
the objects can be polled using any set of events.
Variants§
Trait Implementations§
source§impl Clone for InterestSlot
impl Clone for InterestSlot
source§fn clone(&self) -> InterestSlot
fn clone(&self) -> InterestSlot
Returns a copy 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 moresource§impl Debug for InterestSlot
impl Debug for InterestSlot
source§impl PartialEq for InterestSlot
impl PartialEq for InterestSlot
impl Copy for InterestSlot
impl Eq for InterestSlot
impl StructuralPartialEq for InterestSlot
Auto Trait Implementations§
impl Freeze for InterestSlot
impl RefUnwindSafe for InterestSlot
impl Send for InterestSlot
impl Sync for InterestSlot
impl Unpin for InterestSlot
impl UnwindSafe for InterestSlot
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
)