netstack3_core::tcp

Trait PayloadLen

Source
pub trait PayloadLen {
    // Required method
    fn len(&self) -> usize;
}
Expand description

A TCP payload that only allows for getting the length of the payload.

Required Methods§

Source

fn len(&self) -> usize

Returns the length of the payload.

Implementations on Foreign Types§

Source§

impl PayloadLen for &[u8]

Source§

fn len(&self) -> usize

Source§

impl PayloadLen for ()

Source§

fn len(&self) -> usize

Source§

impl<I, B> PayloadLen for InnerSerializer<I, B>
where I: PayloadLen,

Source§

fn len(&self) -> usize

Implementors§

Source§

impl<'a, const N: usize> PayloadLen for FragmentedPayload<'a, N>