struct ReadinessState(usize);
Expand description

Tracks all state for a single ReadinessNode. The state is packed into a usize variable from low to high bit as follows:

4 bits: Registration current readiness 4 bits: Registration interest 4 bits: Poll options 2 bits: Token position currently being read from by poll 2 bits: Token position last written to by update 1 bit: Queued flag, set when node is being pushed into MPSC queue. 1 bit: Dropped flag, set when all Registration handles have been dropped.

Tuple Fields

0: usize

Implementations

Get the readiness

Set the readiness

Get the interest

Set the interest

Get the poll options

Set the poll options

Set the queued flag

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.