[−][src]Struct esp_idf_bindgen::pbuf
Main packet buffer struct
Fields
next: *mut pbufnext pbuf in singly linked pbuf chain
payload: *mut c_voidpointer to the actual data in the buffer
tot_len: u16_ttotal length of this buffer and all next buffers in chain belonging to the same packet.
For non-queue packet chains this is the invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)
len: u16_tlength of this buffer
type_internal: u8_ta bit field indicating pbuf type and allocation sources (see PBUF_TYPE_FLAG_, PBUF_ALLOC_FLAG_ and PBUF_TYPE_ALLOC_SRC_MASK)
flags: u8_tmisc flags
ref_: u8_tthe reference count always equals the number of pointers that refer to this pbuf. This can be pointers from an application, the stack itself, or pbuf->next pointers from a chain.
if_idx: u8_tFor incoming packets, this contains the input netif's index
l2_owner: *mut netifl2_buf: *mut c_voidTrait Implementations
impl Clone for pbuf[src]
fn clone(&self) -> pbuf[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for pbuf[src]
impl Debug for pbuf[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,