[][src]Struct dns_message_parser::Flags

pub struct Flags { /* fields omitted */ }

Methods

impl Flags[src]

pub fn decode(bytes: &Bytes, offset: &mut usize) -> Result<Flags, DecodeError>[src]

impl Flags[src]

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

pub fn get_opcode(&self) -> &Opcode[src]

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

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

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

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

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

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

pub fn get_rcode(&self) -> &RCode[src]

impl Flags[src]

pub fn new(
    qr: bool,
    opcode: Opcode,
    aa: bool,
    tc: bool,
    rd: bool,
    ra: bool,
    ad: bool,
    cd: bool,
    rcode: RCode
) -> Flags
[src]

impl Flags[src]

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

Trait Implementations

impl Debug for Flags[src]

impl PartialEq<Flags> for Flags[src]

impl StructuralPartialEq for Flags[src]

Auto Trait Implementations

impl RefUnwindSafe for Flags

impl Send for Flags

impl Sync for Flags

impl Unpin for Flags

impl UnwindSafe for Flags

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.