Function trust_dns_proto::op::message::emit_message_parts

source ·
pub fn emit_message_parts<Q, A, N, D>(
    header: &Header,
    queries: &mut Q,
    answers: &mut A,
    name_servers: &mut N,
    additionals: &mut D,
    edns: Option<&Edns>,
    signature: &[Record],
    encoder: &mut BinEncoder<'_>,
) -> ProtoResult<Header>
Expand description

Emits the different sections of a message properly

§Return

In the case of a successful emit, the final header (updated counts, etc) is returned for help with logging, etc.