[][src]Struct libresolv_sys::HEADER

#[repr(C)]#[repr(align(4))]pub struct HEADER {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 12], u16>,
}

Fields

_bitfield_1: __BindgenBitfieldUnit<[u8; 12], u16>

Implementations

impl HEADER[src]

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

pub fn set_id(&mut self, val: c_uint)[src]

pub fn rd(&self) -> c_uint[src]

pub fn set_rd(&mut self, val: c_uint)[src]

pub fn tc(&self) -> c_uint[src]

pub fn set_tc(&mut self, val: c_uint)[src]

pub fn aa(&self) -> c_uint[src]

pub fn set_aa(&mut self, val: c_uint)[src]

pub fn opcode(&self) -> c_uint[src]

pub fn set_opcode(&mut self, val: c_uint)[src]

pub fn qr(&self) -> c_uint[src]

pub fn set_qr(&mut self, val: c_uint)[src]

pub fn rcode(&self) -> c_uint[src]

pub fn set_rcode(&mut self, val: c_uint)[src]

pub fn cd(&self) -> c_uint[src]

pub fn set_cd(&mut self, val: c_uint)[src]

pub fn ad(&self) -> c_uint[src]

pub fn set_ad(&mut self, val: c_uint)[src]

pub fn unused(&self) -> c_uint[src]

pub fn set_unused(&mut self, val: c_uint)[src]

pub fn ra(&self) -> c_uint[src]

pub fn set_ra(&mut self, val: c_uint)[src]

pub fn qdcount(&self) -> c_uint[src]

pub fn set_qdcount(&mut self, val: c_uint)[src]

pub fn ancount(&self) -> c_uint[src]

pub fn set_ancount(&mut self, val: c_uint)[src]

pub fn nscount(&self) -> c_uint[src]

pub fn set_nscount(&mut self, val: c_uint)[src]

pub fn arcount(&self) -> c_uint[src]

pub fn set_arcount(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    id: c_uint,
    rd: c_uint,
    tc: c_uint,
    aa: c_uint,
    opcode: c_uint,
    qr: c_uint,
    rcode: c_uint,
    cd: c_uint,
    ad: c_uint,
    unused: c_uint,
    ra: c_uint,
    qdcount: c_uint,
    ancount: c_uint,
    nscount: c_uint,
    arcount: c_uint
) -> __BindgenBitfieldUnit<[u8; 12], u16>
[src]

Trait Implementations

impl Clone for HEADER[src]

impl Copy for HEADER[src]

impl Debug for HEADER[src]

impl Default for HEADER[src]

Auto Trait Implementations

impl RefUnwindSafe for HEADER

impl Send for HEADER

impl Sync for HEADER

impl Unpin for HEADER

impl UnwindSafe for HEADER

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.