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

A Umem frame descriptor.

Used to pass frame information between the kernel and userspace. addr is an offset in bytes from the start of the Umem and corresponds to the starting address of the packet data segment of some frame. lengths describes the length (in bytes) of any data stored in the frame’s headroom or data segments.

Implementations

The starting address of the packet data segment of the frame pointed at by this descriptor.

Current headroom and packet data lengths for the frame pointed at by this descriptor.

Frame options.

Set the frame options.

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

Creates an empty frame descriptor with an address of zero and segment lengths also set to zero.

Since the address of any descriptors created this way is always zero, before using them to write to the Umem they should first be ‘initialised’ by passing them to either the RxQueue or the CompQueue, so they can be populated with the details of a free frame.

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.