Enum tor_cell::relaycell::msg::ResolvedVal [−][src]
#[non_exhaustive] pub enum ResolvedVal { Ip(IpAddr), Hostname(Vec<u8>), TransientError, NontransientError, Unrecognized(u8, Vec<u8>), }
Expand description
Possible response to a DNS lookup
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ip(IpAddr)
We found an IP address
We found a hostname
Error; try again
Error; don’t try again
A DNS lookup response that we didn’t recognize
Trait Implementations
Encode this object into the writer b
.
Auto Trait Implementations
impl RefUnwindSafe for ResolvedVal
impl Send for ResolvedVal
impl Sync for ResolvedVal
impl Unpin for ResolvedVal
impl UnwindSafe for ResolvedVal
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Encode this object into the writer b
, and consume it.