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

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

    fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError> { ... }
}

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

impl<'r> BinDecodable<'r> for Vec<u8>
[src]

impl<'r> BinDecodable<'r> for i32
[src]

impl<'r> BinDecodable<'r> for u32
[src]

impl<'r> BinDecodable<'r> for u16
[src]

Implementors