Structs
Constants
Statics
NEXT_ID 🔒
Each Selector has a globally unique(ish) ID associated with it. This ID
gets tracked by TcpStream
, TcpListener
, etc… when they are first
registered with the Selector
. If a type that is previously associated with
a Selector
attempts to register itself with a different Selector
, the
operation will return with an error. This matches windows behavior.
Functions
Convert a Duration
to milliseconds, rounding up and saturating at
u64::MAX
.