Struct esp_idf_sys::os_mbuf_pool
source · #[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,
}
Expand description
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§
source§impl Clone for os_mbuf_pool
impl Clone for os_mbuf_pool
source§fn clone(&self) -> os_mbuf_pool
fn clone(&self) -> os_mbuf_pool
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for os_mbuf_pool
impl Debug for os_mbuf_pool
source§impl Default for os_mbuf_pool
impl Default for os_mbuf_pool
impl Copy for os_mbuf_pool
Auto Trait Implementations§
impl Freeze for os_mbuf_pool
impl RefUnwindSafe for os_mbuf_pool
impl !Send for os_mbuf_pool
impl !Sync for os_mbuf_pool
impl Unpin for os_mbuf_pool
impl UnwindSafe for os_mbuf_pool
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)