[][src]Trait trust_dns_proto::op::message::EmitAndCount

pub trait EmitAndCount {
    fn emit(&mut self, encoder: &mut BinEncoder) -> ProtoResult<usize>;
}

A trait that defines types which can be emitted as a set, with the associated count returned.

Required methods

fn emit(&mut self, encoder: &mut BinEncoder) -> ProtoResult<usize>

Emit self to the encoder and return the count of items

Loading content...

Implementors

impl<'e, I: Iterator<Item = &'e E>, E: 'e + BinEncodable> EmitAndCount for I[src]

Loading content...