Struct domain::rdata::rfc1035::A [−][src]
pub struct A { /* fields omitted */ }
A record data.
A records convey the IPv4 address of a host. The wire format is the 32 bit IPv4 address in network byte order. The master file format is the usual dotted notation.
The A record type is defined in RFC 1035, section 3.4.1.
Methods
impl A
[src]
impl A
pub fn new(addr: Ipv4Addr) -> A
[src]
pub fn new(addr: Ipv4Addr) -> A
Creates a new A record data from an IPv4 address.
pub fn from_octets(a: u8, b: u8, c: u8, d: u8) -> A
[src]
pub fn from_octets(a: u8, b: u8, c: u8, d: u8) -> A
Creates a new A record from the IPv4 address components.
pub fn addr(&self) -> Ipv4Addr
[src]
pub fn addr(&self) -> Ipv4Addr
pub fn set_addr(&mut self, addr: Ipv4Addr)
[src]
pub fn set_addr(&mut self, addr: Ipv4Addr)
pub fn rtype() -> Rtype
[src]
pub fn rtype() -> Rtype
pub fn scan<S: Scanner>(
scanner: &mut S,
_origin: Option<&DNameSlice>
) -> ScanResult<Self>
[src]
pub fn scan<S: Scanner>(
scanner: &mut S,
_origin: Option<&DNameSlice>
) -> ScanResult<Self>
Trait Implementations
impl Clone for A
[src]
impl Clone for A
fn clone(&self) -> A
[src]
fn clone(&self) -> A
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for A
[src]
impl Debug for A
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for A
[src]
impl Eq for A
impl Ord for A
[src]
impl Ord for A
fn cmp(&self, other: &A) -> Ordering
[src]
fn cmp(&self, other: &A) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for A
[src]
impl PartialEq for A
fn eq(&self, other: &A) -> bool
[src]
fn eq(&self, other: &A) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &A) -> bool
[src]
fn ne(&self, other: &A) -> bool
This method tests for !=
.
impl PartialOrd for A
[src]
impl PartialOrd for A
fn partial_cmp(&self, other: &A) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &A) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &A) -> bool
[src]
fn lt(&self, other: &A) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &A) -> bool
[src]
fn le(&self, other: &A) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &A) -> bool
[src]
fn gt(&self, other: &A) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &A) -> bool
[src]
fn ge(&self, other: &A) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl RecordData for A
[src]
impl RecordData for A
fn rtype(&self) -> Rtype
[src]
fn rtype(&self) -> Rtype
Returns the record type for this record data instance. Read more
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
[src]
fn compose<C: AsMut<Composer>>(&self, target: C) -> ComposeResult<()>
Appends the record data to the end of a composer.
impl<'a> ParsedRecordData<'a> for A
[src]
impl<'a> ParsedRecordData<'a> for A
fn parse(rtype: Rtype, parser: &mut Parser) -> ParseResult<Option<Self>>
[src]
fn parse(rtype: Rtype, parser: &mut Parser) -> ParseResult<Option<Self>>
Parses the record data out of a parser. Read more
impl Display for A
[src]
impl Display for A