Trait trust_dns_proto::op::message::EmitAndCount

source ·
pub trait EmitAndCount {
    // Required method
    fn emit(&mut self, encoder: &mut BinEncoder<'_>) -> ProtoResult<usize>;
}
Expand description

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

Required Methods§

source

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

Emit self to the encoder and return the count of items

Implementors§

source§

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