[][src]Struct mynewt::kernel::os::os_mbuf_pool

#[repr(C)]
pub struct os_mbuf_pool { pub omp_databuf_len: u16, pub omp_pool: *mut os_mempool, pub omp_next: os_mbuf_pool__bindgen_ty_1, }

A mbuf pool from which to allocate mbufs. This contains a pointer to the os mempool to allocate mbufs out of, the total number of elements in the pool, and the amount of "user" data in a non-packet header mbuf. The total pool size, in bytes, should be: os_mbuf_count * (omp_databuf_len + sizeof(struct os_mbuf))

Fields

omp_databuf_len: u16

Total length of the databuf in each mbuf. This is the size of the mempool block, minus the mbuf header

omp_pool: *mut os_mempool

The memory pool which to allocate mbufs out of

omp_next: os_mbuf_pool__bindgen_ty_1

Trait Implementations

impl Default for os_mbuf_pool[src]

Auto Trait Implementations

impl !Send for os_mbuf_pool

impl !Sync for os_mbuf_pool

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]