Trait trust_dns::serialize::binary::BinSerializable [] [src]

pub trait BinSerializable<S: Sized> {
    fn read(decoder: &mut BinDecoder) -> DecodeResult<S>;
fn emit(&self, encoder: &mut BinEncoder) -> EncodeResult; }

A trait for types which are serializable

Required Methods

Read the type from the stream

Write the type to the stream

Implementors