Struct dominion::body::RecordPreamble
source · [−]pub struct RecordPreamble<'a> {
pub name: Name<'a>,
pub rrtype: Type,
pub class: Class,
pub ttl: i32,
pub rdlen: u16,
}
Expand description
The ResourceRecord preamble. Common data to all resource record types.
Fields
name: Name<'a>
The domain name the RR refers to.
rrtype: Type
The RR type.
class: Class
The RR class.
ttl: i32
The time interval that the resource record may be cached before the source of the information should again be consulted.
rdlen: u16
The length of the RR data.
Trait Implementations
sourceimpl<'a> Clone for RecordPreamble<'a>
impl<'a> Clone for RecordPreamble<'a>
sourcefn clone(&self) -> RecordPreamble<'a>
fn clone(&self) -> RecordPreamble<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for RecordPreamble<'a>
impl<'a> Send for RecordPreamble<'a>
impl<'a> Sync for RecordPreamble<'a>
impl<'a> Unpin for RecordPreamble<'a>
impl<'a> UnwindSafe for RecordPreamble<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more