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
fn header(&self) -> &Header
The Header associated with this Message
fn queries_len(&self) -> usize
return the length of the set of queries
fn emit_queries(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Emit the queries section of the EncodableMessage, if there are none, it's acceptable to return Ok(())
fn answers_len(&self) -> usize
return the length of the set of queries
fn emit_answers(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Emit the answers section of the EncodableMessage, if there are none, it's acceptable to return Ok(())
fn name_servers_len(&self) -> usize
return the length of the set of queries
fn emit_name_servers(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Emit the name_servers section of the EncodableMessage, if there are none, it's acceptable to return Ok(())
fn additionals_len(&self) -> usize
return the length of the set of queries
fn emit_additionals(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Emit the additionals section of the EncodableMessage, if there are none, it's acceptable to return Ok(())
fn edns(&self) -> Option<&Edns>
Extended DNS options associated with this message
fn sig0(&self) -> &[Record]
Any SIG0 records for signed messages
Provided Methods
fn update_header_counts(&self, include_sig0: bool) -> Header
Returns a new Header with accurate counts for each Message section
Implementors
impl EncodableMessage for Message