Trait PacketPayloadLenCursor

Source
pub trait PacketPayloadLenCursor: EncoderValue {
    // Required methods
    fn new() -> Self;
    fn update(&self, buffer: &mut EncoderBuffer<'_>, actual_len: usize);
}

Required Methods§

Source

fn new() -> Self

Source

fn update(&self, buffer: &mut EncoderBuffer<'_>, actual_len: usize)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PacketPayloadLenCursor for ()

used for short packets that don’t use a payload len

Source§

fn new()

Source§

fn update(&self, _buffer: &mut EncoderBuffer<'_>, _actual_len: usize)

Implementors§