[−][src]Enum rusty_dns::dns_packet::dns_resource_record::DnsResourceRecordData
Represents the data stored in DNS resource records
Variants
A(Ipv4Addr)
An IPv4 host address.
NS(String)
An authoritative name server.
MD(String)
A mail destination (Obsolete - replaced by MX).
MF(String)
A mail forwarder (Obsolete - replaced by MX).
CNAME(String)
The canonical name for an alias.
Marks the start of a zone of authority.
MB(String)
A mailbox domain name.
MG(String)
A mail group member.
MR(String)
A mail rename domain name.
An experimental RR containing any possible data.
A well known service description.
PTR(String)
A domain name pointer.
Host information.
Mailbox or mail list information.
Mail exchange.
TXT(String)
Text strings.
AAAA(Ipv6Addr)
An IPv6 host address.
Specifies location of a service for a specific protocol.
Implementations
impl DnsResourceRecordData
[src]
pub fn parse(
rrtype: u16,
buf: &Vec<u8>,
start: usize,
rdlength: u16
) -> Result<DnsResourceRecordData, String>
[src]
rrtype: u16,
buf: &Vec<u8>,
start: usize,
rdlength: u16
) -> Result<DnsResourceRecordData, String>
Parse the data for a resource record from buf
pub fn serialize(
&self,
buf: &mut Vec<u8>,
domain_name_offsets: &mut HashMap<String, u16>
) -> Result<(), String>
[src]
&self,
buf: &mut Vec<u8>,
domain_name_offsets: &mut HashMap<String, u16>
) -> Result<(), String>
Serialize the resource record data into a DNS protocol network ready format
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnsResourceRecordData
impl Send for DnsResourceRecordData
impl Sync for DnsResourceRecordData
impl Unpin for DnsResourceRecordData
impl UnwindSafe for DnsResourceRecordData
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,
pub 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, 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,