pub trait BinDecodable<'r>: Sized {
    fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>;

    fn from_bytes(bytes: &'r [u8]) -> ProtoResult<Self> { ... }
}
Expand description

A trait for types which are serializable to and from DNS binary formats

Required methods

Read the type from the stream

Provided methods

Returns the object in binary form

Implementations on Foreign Types

Implementors