Trait smpte2022_1_fec::Packet[][src]

pub trait Packet: Sized {
    fn payload(&self) -> &[u8];
fn payload_mut(&mut self) -> &mut [u8];
fn truncate(&mut self, size: usize); }

Required methods

fn payload(&self) -> &[u8][src]

fn payload_mut(&mut self) -> &mut [u8][src]

fn truncate(&mut self, size: usize)[src]

adjust the size of the underlying buffer to the given value

##Panics

Will panic if the given size is larger than the packet size of the BufferPool which allocated this packet.

Loading content...

Implementors

impl Packet for HeapPacket[src]

Loading content...