pub enum Response<'a> {
A {
name: Label<'a>,
addr: Ipv4Addr,
},
AAAA {
name: Label<'a>,
addr: Ipv6Addr,
zone: Option<u32>,
},
Ptr(Label<'a>),
Txt {
name: Label<'a>,
txt: Txt<'a, 'a>,
},
Srv {
name: Label<'a>,
srv: Srv<'a>,
},
}Expand description
Events reacted to incoming responses
Variants§
A
An A record
AAAA
An AAAA record
Fields
Ptr(Label<'a>)
A PTR record
Txt
A TXT record
Srv
A SRV record
Trait Implementations§
impl<'a> Copy for Response<'a>
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnwindSafe for Response<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more