[−][src]Enum dns_message_parser::RData
Variants
A(Ipv4Addr)
NS(DomainName)
MD(DomainName)
MF(DomainName)
CNAME(DomainName)
SOA(DomainName, DomainName, u32, u32, u32, u32, u32)
MB(DomainName)
MG(DomainName)
MR(DomainName)
PTR(DomainName)
MINFO(DomainName, DomainName)
MX(u16, DomainName)
TXT(String)
RP(DomainName, DomainName)
AFSDB(AFSDBSubtype, DomainName)
X25(String)
RT(u16, DomainName)
PX(u16, DomainName, DomainName)
AAAA(Ipv6Addr)
SRV(u16, u16, u16, DomainName)
KX(u16, DomainName)
DNAME(DomainName)
SSHFP(SSHFPAlgorithm, SSHFPType, Vec<u8>)
Methods
impl RData
[src]
pub fn decode(
bytes: &Bytes,
offset: &mut usize,
type_: &Type
) -> Result<(Class, u32, RData), DecodeError>
[src]
bytes: &Bytes,
offset: &mut usize,
type_: &Type
) -> Result<(Class, u32, RData), DecodeError>
impl RData
[src]
pub fn encode(
&self,
bytes: &mut BytesMut,
class: &Class,
ttl: u32,
compression: &mut HashMap<String, usize>
) -> Result<(), EncodeError>
[src]
&self,
bytes: &mut BytesMut,
class: &Class,
ttl: u32,
compression: &mut HashMap<String, usize>
) -> Result<(), EncodeError>
impl RData
[src]
Trait Implementations
impl Clone for RData
[src]
impl Debug for RData
[src]
impl PartialEq<RData> for RData
[src]
impl StructuralPartialEq for RData
[src]
Auto Trait Implementations
impl RefUnwindSafe for RData
impl Send for RData
impl Sync for RData
impl Unpin for RData
impl UnwindSafe for RData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,