#[repr(transparent)]
pub struct BufRingEntry(_);

Implementations§

An entry in a buf_ring that allows setting the address, length and buffer id.

Sets the entry addr.

Returns the entry addr.

Sets the entry len.

Returns the entry len.

Sets the entry bid.

Returns the entry bid.

The offset to the ring’s tail field given the ring’s base address.

The caller should ensure the ring’s base address is aligned with the system’s page size, per the uring interface requirements.

Safety

The ptr will be dereferenced in order to determine the address of the resv field, so the caller is responsible for passing in a valid pointer. And not just a valid pointer type, but also the argument must be the address to the first entry of the buf_ring for the resv field to even be considered the tail field of the ring. The entry must also be properly initialized.

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.