pub struct Record<T: RecordData> {
pub name: String,
pub class: Class,
pub ttl: u32,
pub data: T,
}
Expand description
A DNS response record of a particular type
Fields
name: String
class: Class
ttl: u32
data: T
Implementations
Trait Implementations
sourceimpl<T: Clone + RecordData> Clone for Record<T>
impl<T: Clone + RecordData> Clone for Record<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Record<T>where
T: RefUnwindSafe,
impl<T> Send for Record<T>where
T: Send,
impl<T> Sync for Record<T>where
T: Sync,
impl<T> Unpin for Record<T>where
T: Unpin,
impl<T> UnwindSafe for Record<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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