pub struct ExtraRecord {
pub name: String,
pub addr: IpAddr,
}Expand description
A control-pushed static host record (Go tailcfg.DNSConfig.ExtraRecords). MagicDNS answers
these alongside tailnet peer names. Only A/AAAA records are kept; other record types are
dropped, since the responder only serves address records.
Fields§
§name: StringThe record name, canonicalized: lowercased, no trailing dot.
addr: IpAddrThe address bound to name. V4 answers A; V6 answers AAAA.
Trait Implementations§
Source§impl Clone for ExtraRecord
impl Clone for ExtraRecord
Source§fn clone(&self) -> ExtraRecord
fn clone(&self) -> ExtraRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtraRecord
impl Debug for ExtraRecord
impl Eq for ExtraRecord
Source§impl PartialEq for ExtraRecord
impl PartialEq for ExtraRecord
Source§fn eq(&self, other: &ExtraRecord) -> bool
fn eq(&self, other: &ExtraRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExtraRecord
Auto Trait Implementations§
impl Freeze for ExtraRecord
impl RefUnwindSafe for ExtraRecord
impl Send for ExtraRecord
impl Sync for ExtraRecord
impl Unpin for ExtraRecord
impl UnsafeUnpin for ExtraRecord
impl UnwindSafe for ExtraRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.