Struct trust_dns::op::message::Message
[−]
[src]
pub struct Message { // some fields omitted }
By default Message is a Query. Use the Message::as_update() to create and update, or Message::new_update()
Methods
impl Message
[src]
fn new() -> Self
fn truncate(&self) -> Self
fn id(&mut self, id: u16) -> &mut Self
fn message_type(&mut self, message_type: MessageType) -> &mut Self
fn op_code(&mut self, op_code: OpCode) -> &mut Self
fn authoritative(&mut self, authoritative: bool) -> &mut Self
fn truncated(&mut self, truncated: bool) -> &mut Self
fn recursion_desired(&mut self, recursion_desired: bool) -> &mut Self
fn recursion_available(&mut self, recursion_available: bool) -> &mut Self
fn authentic_data(&mut self, authentic_data: bool) -> &mut Self
fn checking_disabled(&mut self, checking_disabled: bool) -> &mut Self
fn response_code(&mut self, response_code: ResponseCode) -> &mut Self
fn add_query(&mut self, query: Query) -> &mut Self
fn add_answer(&mut self, record: Record) -> &mut Self
fn add_all_answers(&mut self, vector: &[Record]) -> &mut Self
fn add_name_server(&mut self, record: Record) -> &mut Self
fn add_all_name_servers(&mut self, vector: &[Record]) -> &mut Self
fn add_additional(&mut self, record: Record) -> &mut Self
fn set_edns(&mut self, edns: Edns)
fn add_sig0(&mut self, record: Record) -> &mut Self
fn get_id(&self) -> u16
fn get_message_type(&self) -> MessageType
fn get_op_code(&self) -> OpCode
fn is_authoritative(&self) -> bool
fn is_truncated(&self) -> bool
fn is_recursion_desired(&self) -> bool
fn is_recursion_available(&self) -> bool
fn is_authentic_data(&self) -> bool
fn is_checking_disabled(&self) -> bool
fn get_response_code(&self) -> ResponseCode
fn get_queries(&self) -> &[Query]
fn get_answers(&self) -> &[Record]
fn get_name_servers(&self) -> &[Record]
fn get_additional(&self) -> &[Record]
fn get_edns(&self) -> Option<&Edns>
fn get_max_payload(&self) -> u16
fn get_version(&self) -> u8
Trait Implementations
impl PartialEq for Message
[src]
fn eq(&self, __arg_0: &Message) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Message) -> bool
This method tests for !=
.
impl Debug for Message
[src]
impl UpdateMessage for Message
[src]
to reduce errors in using the Message struct as an Update, this will do the call throughs to properly do that.
fn add_zone(&mut self, query: Query)
fn add_pre_requisite(&mut self, record: Record)
fn add_all_pre_requisites(&mut self, vector: &[Record])
fn add_update(&mut self, record: Record)
fn add_all_updates(&mut self, vector: &[Record])
fn add_additional(&mut self, record: Record)
fn get_zones(&self) -> &[Query]
fn get_pre_requisites(&self) -> &[Record]
fn get_updates(&self) -> &[Record]
fn get_additional(&self) -> &[Record]
fn get_sig0(&self) -> &[Record]
returns the sig0, i.e. signed record, for verifying the sending and package integrity RFC 2535 section 4 this should be the final record in the additional section of the Message Read more