[][src]Trait pcapng_writer::writer::Encodable

pub trait Encodable<W: Write> {
    pub fn encode<B: ByteOrder>(&self, w: &mut W) -> Result<()>;
}

A trait for encoding (serializing) data

Required methods

pub fn encode<B: ByteOrder>(&self, w: &mut W) -> Result<()>[src]

Serializes the object and appends it to the std::io::Write provided

Loading content...

Implementors

impl<'a, W: Write> Encodable<W> for Options<'a>[src]

impl<'a, W: Write> Encodable<W> for RawBlock<'a>[src]

pub fn encode<B: ByteOrder>(&self, w: &mut W) -> Result<()>[src]

For raw blocks, the total length fields are not automatically calculated.

impl<W: Write> Encodable<W> for BlockOption[src]

impl<W: Write> Encodable<W> for EnhancedPacketBlock<'_>[src]

impl<W: Write> Encodable<W> for InterfaceDescriptionBlock<'_>[src]

impl<W: Write> Encodable<W> for InterfaceStatisticsBlock<'_>[src]

impl<W: Write> Encodable<W> for SectionHeaderBlock<'_>[src]

impl<W: Write> Encodable<W> for SimplePacketBlock<'_>[src]

Loading content...