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: TypeThe RR type.
class: ClassThe RR class.
ttl: i32The time interval that the resource record may be cached before the source of the information should again be consulted.
rdlen: u16The length of the RR data.
Trait Implementations§
Source§impl<'a> Clone for RecordPreamble<'a>
impl<'a> Clone for RecordPreamble<'a>
Source§fn clone(&self) -> RecordPreamble<'a>
fn clone(&self) -> RecordPreamble<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for RecordPreamble<'a>
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§
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