pub struct RxQueue { /* private fields */ }
Expand description

The receiving side of an AF_XDP Socket.

More details can be found in the docs.

Implementations

Update descs with information on which Umem frames have received packets. Returns the number of elements of descs which have been updated.

The number of entries updated will be less than or equal to the length of descs. Entries will be updated sequentially from the start of descs until the end.

Once the contents of the consumed frames have been dealt with and are no longer required, the frames should eventually be added back on to either the FillQueue or the TxQueue.

Safety

The frames passed to this queue must belong to the same Umem that this RxQueue instance is tied to.

Same as consume but for a single frame descriptor.

Safety

See consume.

Same as consume but poll first to check if there is anything to read beforehand.

Safety

See consume.

Same as poll_and_consume but for a single frame descriptor.

Safety

See consume.

Polls the socket, returning true if there is data to read.

A reference to the underlying Socket’s file descriptor.

A mutable reference to the underlying Socket’s file descriptor.

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

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 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.