pub trait MemWriter {
    type Error;

    fn reserve_allocate(
        &mut self,
        len: usize
    ) -> Result<(), MemWriterError<Self::Error>>; fn write(&mut self, buf: &[u8]) -> Result<(), MemWriterError<Self::Error>>; }
Expand description

Abstraction for buffer creation/reallocation to storing packet

Required Associated Types

Required Methods

make sure that we have at least len bytes for writing

Implementations on Foreign Types

Implementors