pub struct Soa {
pub mname: String,
pub rname: String,
pub serial: u32,
pub refresh: u32,
pub retry: u32,
pub expire: u32,
pub minimum: u32,
}Expand description
Start of authority
Fields§
§mname: StringDomain name of the name server that was the original or primary source of data for this zone.
rname: StringDomain name which specifies the mailbox of the person responsible for this zone.
serial: u32Version number of the original copy of the zone. This value wraps and should be compared using sequence space arithmetic.
refresh: u32Time interval before the zone should be refreshed.
retry: u32Time interval that should elapse before a failed refresh should be retried.
expire: u32Time value that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative.
minimum: u32Minimum TTL that should be exported with any resource record from this zone.
Trait Implementations§
Source§impl Record for Soa
impl Record for Soa
Source§fn decode(data: &mut MsgReader<'_>) -> Result<Self, DecodeError>
fn decode(data: &mut MsgReader<'_>) -> Result<Self, DecodeError>
Decodes the
Record from resource rdata.Source§fn encode(&self, data: &mut MsgWriter<'_>) -> Result<(), EncodeError>
fn encode(&self, data: &mut MsgWriter<'_>) -> Result<(), EncodeError>
Encodes the
Record to resource rdata.Source§fn record_type() -> RecordType
fn record_type() -> RecordType
Returns the
RecordType of queries for this record.impl Eq for Soa
impl StructuralPartialEq for Soa
Auto Trait Implementations§
impl Freeze for Soa
impl RefUnwindSafe for Soa
impl Send for Soa
impl Sync for Soa
impl Unpin for Soa
impl UnwindSafe for Soa
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more