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

pub trait EncodableMessage {
    fn header(&self) -> &Header;
fn queries_len(&self) -> usize;
fn emit_queries(&self, encoder: &mut BinEncoder) -> ProtoResult<()>;
fn answers_len(&self) -> usize;
fn emit_answers(&self, encoder: &mut BinEncoder) -> ProtoResult<()>;
fn name_servers_len(&self) -> usize;
fn emit_name_servers(&self, encoder: &mut BinEncoder) -> ProtoResult<()>;
fn additionals_len(&self) -> usize;
fn emit_additionals(&self, encoder: &mut BinEncoder) -> ProtoResult<()>;
fn edns(&self) -> Option<&Edns>;
fn sig0(&self) -> &[Record]; fn update_header_counts(&self, include_sig0: bool) -> Header { ... } }

A generic EncodableMessage with associated information for streaming to a connection

Required Methods

The Header associated with this Message

return the length of the set of queries

Emit the queries section of the EncodableMessage, if there are none, it's acceptable to return Ok(())

return the length of the set of queries

Emit the answers section of the EncodableMessage, if there are none, it's acceptable to return Ok(())

return the length of the set of queries

Emit the name_servers section of the EncodableMessage, if there are none, it's acceptable to return Ok(())

return the length of the set of queries

Emit the additionals section of the EncodableMessage, if there are none, it's acceptable to return Ok(())

Extended DNS options associated with this message

Any SIG0 records for signed messages

Provided Methods

Returns a new Header with accurate counts for each Message section

Implementors