[][src]Struct trust_dns_server::authority::MessageRequest

pub struct MessageRequest { /* fields omitted */ }

A Message which captures the data from an inbound request

Implementations

impl MessageRequest[src]

pub fn id(&self) -> u16[src]

see Header::id()

pub fn message_type(&self) -> MessageType[src]

see Header::message_type()

pub fn op_code(&self) -> OpCode[src]

see Header::op_code()

pub fn authoritative(&self) -> bool[src]

see Header::authoritative()

pub fn truncated(&self) -> bool[src]

see Header::truncated()

pub fn recursion_desired(&self) -> bool[src]

see Header::recursion_desired()

pub fn recursion_available(&self) -> bool[src]

see Header::recursion_available()

pub fn authentic_data(&self) -> bool[src]

see Header::authentic_data()

pub fn checking_disabled(&self) -> bool[src]

see Header::checking_disabled()

pub fn response_code(&self) -> ResponseCode[src]

Return value

The ResponseCode, if this is an EDNS message then this will join the section from the OPT record to create the EDNS ResponseCode

pub fn queries(&self) -> &[LowerQuery][src]

Question        Carries the query name and other query parameters.

pub fn answers(&self) -> &[Record][src]

Answer          Carries RRs which directly answer the query.

pub fn name_servers(&self) -> &[Record][src]

Authority       Carries RRs which describe other authoritative servers.
                May optionally carry the SOA RR for the authoritative
                data in the answer section.

pub fn additionals(&self) -> &[Record][src]

Additional      Carries RRs which may be helpful in using the RRs in the
                other sections.

pub fn edns(&self) -> Option<&Edns>[src]

RFC 6891, EDNS(0) Extensions, April 2013

6.1.1.  Basic Elements

 An OPT pseudo-RR (sometimes called a meta-RR) MAY be added to the
 additional data section of a request.

 The OPT RR has RR type 41.

 If an OPT record is present in a received request, compliant
 responders MUST include an OPT record in their respective responses.

 An OPT record does not carry any DNS data.  It is used only to
 contain control information pertaining to the question-and-answer
 sequence of a specific transaction.  OPT RRs MUST NOT be cached,
 forwarded, or stored in or loaded from zone files.

 The OPT RR MAY be placed anywhere within the additional data section.
 When an OPT RR is included within any DNS message, it MUST be the
 only OPT RR in that message.  If a query message with more than one
 OPT RR is received, a FORMERR (RCODE=1) MUST be returned.  The
 placement flexibility for the OPT RR does not override the need for
 the TSIG or SIG(0) RRs to be the last in the additional section
 whenever they are present.

Return value

Returns the EDNS record if it was found in the additional section.

pub fn sig0(&self) -> &[Record][src]

Any SIG0 records for signed messages

pub fn max_payload(&self) -> u16[src]

Return value

the max payload value as it's defined in the EDNS section.

pub fn version(&self) -> u8[src]

Return value

the version as defined in the EDNS record

pub fn raw_queries(&self) -> &Queries[src]

Returns the queries passed received from the client

Trait Implementations

impl<'q> BinDecodable<'q> for MessageRequest[src]

fn read(decoder: &mut BinDecoder<'q>) -> ProtoResult<Self>[src]

Reads a MessageRequest from the decoder

impl BinEncodable for MessageRequest[src]

impl Debug for MessageRequest[src]

impl PartialEq<MessageRequest> for MessageRequest[src]

impl StructuralPartialEq for MessageRequest[src]

impl UpdateRequest for MessageRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,