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

Implementations on Foreign Types

impl BinSerializable<u16> for u16
[src]

[src]

[src]

impl BinSerializable<i32> for i32
[src]

[src]

[src]

impl BinSerializable<u32> for u32
[src]

[src]

[src]

impl BinSerializable<Vec<u8>> for Vec<u8>
[src]

[src]

[src]

Implementors