Skip to main content

PayloadLen

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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: PayloadLen, B> PayloadLen for InnerSerializer<I, B>

Source§

fn len(&self) -> usize

Implementors§

Source§

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