[][src]Trait packet::builder::Finalizer

pub trait Finalizer {
    pub fn finalize(self: Box<Self>, buffer: &mut [u8]) -> Result<()>;
}

A finalizer used by builders to complete building the packet, this is usually used to calculate the checksum and update length fields after the whole packet has been created.

Required methods

pub fn finalize(self: Box<Self>, buffer: &mut [u8]) -> Result<()>[src]

Run the finalizer on the given buffer.

Loading content...

Implementors

impl<F: FnOnce(&mut [u8]) -> Result<()>> Finalizer for F[src]

Loading content...