#[repr(transparent)]pub struct EventedId(pub usize);
Expand description
Associates readiness notifications with Evented
handles.
EventedId
is used as an argument to Poller.register
and
Poller.reregister
and is used to associate an Event
with an
Evented
handle.
See Poller
for more documentation on polling.
Uniqueness of EventedId
EventedId
does not have to be unique within a Poller
instance, it is
purely a tool for the user of Poller
to associate an Event
with an
Evented
handle. It is advised for example to use the same EventedId
for
say a TcpStream
and any related timeout or deadline for the same
connection. The EventedID
is effectively opaque to Poller
.
Tuple Fields§
§0: usize
Trait Implementations§
source§impl Ord for EventedId
impl Ord for EventedId
source§impl PartialOrd<EventedId> for EventedId
impl PartialOrd<EventedId> for EventedId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more