Struct os::fs::poll::FdSet

source · []
#[repr(C)]
pub struct FdSet { bits: [u64; 16], }
Expand description

Bitmap used by pselect() and select to indicate the event to wait for.

Fields

bits: [u64; 16]

Implementations

Return an empty bitmap for further manipulation

Divide d by 64 to decide the u64 in bits to visit.

Mod d by 64 for the position of d in the fd_elt() bitmap.

Clear the current struct.

Collect all fds with their bits set.

The total number of set bits.

Clear a certain bit d to stop waiting for the event of the correspond fd.

Predicate for whether the bit is set for the d

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.