pub struct Answer {
pub server: Option<String>,
pub name: String,
pub status: Status,
pub addresses: Vec<IpAddr>,
pub note: Option<String>,
}Expand description
The answer to the A and AAAA queries of a name.
Fields§
§server: Option<String>The DNS server asked; None for the resolver of this machine.
name: StringThe name asked for.
status: Status§addresses: Vec<IpAddr>§note: Option<String>Why there are no addresses, or, with addresses, why the answer is incomplete: a query of the other family failed.
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Forget for Answer
impl Freeze for Answer
impl Move for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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