Struct driverkit::iomem::IOBufChain

source ·
pub struct IOBufChain {
    pub csum_flags: u32,
    pub csum_data: u32,
    pub vtag: Option<u32>,
    pub flags: u32,
    pub rss_flow_id: Option<usize>,
    pub rss_type: u32,
    pub segments: VecDeque<IOBuf>,
    /* private fields */
}
Expand description

An IO buffer.

Fields§

§csum_flags: u32

Check sum flags (set by driver on rx)

§csum_data: u32

Checksum data (set by driver on rx)

§vtag: Option<u32>

VLAN tag (set by device driver on rx)

§flags: u32

Flags (to be used by device driver).

§rss_flow_id: Option<usize>

Flow ID for RSS

§rss_type: u32

RSS type

§segments: VecDeque<IOBuf>

The IOBuf fragments

Implementations§

source§

impl IOBufChain

source

pub fn new(flags: u32, len: usize) -> Result<IOBufChain, IOMemError>

source

pub fn set_meta_data( &mut self, total_len: usize, segments: usize, cqidx: usize, rss_flow_id: Option<usize>, rsstype: u32 )

Set meta-data provided by the driver

source

pub fn append(&mut self, buf: IOBuf)

Trait Implementations§

source§

impl Debug for IOBufChain

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Index<usize> for IOBufChain

implementation for the index operator [] on IOBuf

§

type Output = u8

The returned type after indexing.

source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.