Struct domain::rdata::rfc1035::Soa
[−]
[src]
pub struct Soa<N: DName> { /* fields omitted */ }
Soa record data.
Soa records mark the top of a zone and contain information pertinent for name server maintenance operations.
The Soa record type is defined in RFC 1035, section 3.3.13.
Methods
impl<N: DName> Soa<N>
[src]
fn new(mname: N,
rname: N,
serial: u32,
refresh: u32,
retry: u32,
expire: u32,
minimum: u32)
-> Self
rname: N,
serial: u32,
refresh: u32,
retry: u32,
expire: u32,
minimum: u32)
-> Self
Creates new Soa record data from content.
fn mname(&self) -> &N
The primary name server for the zone.
fn rname(&self) -> &N
The mailbox for the person responsible for this zone.
fn serial(&self) -> u32
The serial number of the original copy of the zone.
fn refresh(&self) -> u32
The time interval in seconds before the zone should be refreshed.
fn retry(&self) -> u32
The time in seconds before a failed refresh is retried.
fn expire(&self) -> u32
The upper limit of time in seconds the zone is authoritative.
fn minimum(&self) -> u32
The minimum TTL to be exported with any RR from this zone.
impl Soa<DNameBuf>
[src]
fn scan<S: Scanner>(scanner: &mut S,
origin: Option<&DNameSlice>)
-> ScanResult<Self>
origin: Option<&DNameSlice>)
-> ScanResult<Self>
Trait Implementations
impl<N: Clone + DName> Clone for Soa<N>
[src]
fn clone(&self) -> Soa<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<N: Debug + DName> Debug for Soa<N>
[src]
impl<N: Eq + DName> Eq for Soa<N>
[src]
impl<N: Ord + DName> Ord for Soa<N>
[src]
fn cmp(&self, __arg_0: &Soa<N>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<N: PartialEq + DName> PartialEq for Soa<N>
[src]
fn eq(&self, __arg_0: &Soa<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Soa<N>) -> bool
This method tests for !=
.
impl<N: PartialOrd + DName> PartialOrd for Soa<N>
[src]
fn partial_cmp(&self, __arg_0: &Soa<N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Soa<N>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Soa<N>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Soa<N>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Soa<N>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<N: DName> RecordData for Soa<N>
[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<()>
Appends the record data to the end of a composer.
impl<'a> ParsedRecordData<'a> for Soa<ParsedDName<'a>>
[src]
fn parse(rtype: Rtype, parser: &mut Parser<'a>) -> ParseResult<Option<Self>>
Parses the record data out of a parser.