Trait retina_core::protocols::packet::PacketHeader

source ·
pub trait PacketHeader {
    // Required method
    fn length(&self) -> usize;

    // Provided method
    fn size_of() -> usize
       where Self: Sized { ... }
}
Expand description

Represents a packet header.

Required Methods§

source

fn length(&self) -> usize

Offset from beginning of the header to start of the payload. It includes the length of any variable-sized options and tags.

Provided Methods§

source

fn size_of() -> usize
where Self: Sized,

Size of the fixed portion of the header in bytes.

Implementors§