[][src]Struct dns_message_parser::RR

pub struct RR { /* fields omitted */ }

Implementations

impl RR[src]

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

impl RR[src]

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

impl RR[src]

pub fn get_domain_name(&self) -> &DomainName[src]

pub fn get_class(&self) -> &Class[src]

pub fn get_ttl(&self) -> &u32[src]

pub fn get_rdata(&self) -> &RData[src]

impl RR[src]

pub fn new(domain_name: DomainName, class: Class, ttl: u32, rdata: RData) -> RR[src]

pub fn split(self) -> (Question, u32, RData)[src]

Trait Implementations

impl Debug for RR[src]

impl Display for RR[src]

impl PartialEq<RR> for RR[src]

impl StructuralPartialEq for RR[src]

Auto Trait Implementations

impl RefUnwindSafe for RR

impl Send for RR

impl Sync for RR

impl Unpin for RR

impl UnwindSafe for RR

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> ToString for T where
    T: Display + ?Sized
[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.