[][src]Struct dns_message_parser::Dns

pub struct Dns { /* fields omitted */ }

Methods

impl Dns[src]

pub fn decode(bytes: &Bytes) -> Result<Dns, DecodeError>[src]

impl Dns[src]

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

pub fn get_flags(&self) -> &Flags[src]

pub fn get_questions(&self) -> &Vec<Question>[src]

pub fn get_answers(&self) -> &Vec<RR>[src]

pub fn get_authorities(&self) -> &Vec<RR>[src]

pub fn get_additionals(&self) -> &Vec<RR>[src]

impl Dns[src]

pub fn set_id(&mut self, val: u16) -> &mut Self[src]

impl Dns[src]

pub fn new(
    id: u16,
    flags: Flags,
    questions: Vec<Question>,
    answers: Vec<RR>,
    authorities: Vec<RR>,
    additionals: Vec<RR>
) -> Dns
[src]

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

impl Dns[src]

pub fn encode(&self, bytes: &mut BytesMut) -> Result<(), EncodeError>[src]

Trait Implementations

impl Debug for Dns[src]

impl PartialEq<Dns> for Dns[src]

impl StructuralPartialEq for Dns[src]

Auto Trait Implementations

impl RefUnwindSafe for Dns

impl Send for Dns

impl Sync for Dns

impl Unpin for Dns

impl UnwindSafe for Dns

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.