Trait dhcproto::encoder::Encodable[][src]

pub trait Encodable {
    fn encode(&self, e: &mut Encoder<'_>) -> EncodeResult<()>;

    fn to_vec(&self) -> EncodeResult<Vec<u8>> { ... }
}
Expand description

A trait for types which are deserializable to DHCP binary formats

Required methods

Read the type from the stream

Provided methods

encode this type into a new Vec

Implementors