pub enum Named {
Resolved(u32),
NotFound,
Refused(String),
ProxiedAway,
}Expand description
How the name resolved.
Variants§
Resolved(u32)
How many addresses came back. A name that resolves to nothing is
NotFound, never Resolved(0).
NotFound
The resolver knows the name does not exist.
Refused(String)
The resolver itself failed, and said this.
ProxiedAway
A proxy resolves the name, so this machine did not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Named
impl<'de> Deserialize<'de> for Named
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Named
impl StructuralPartialEq for Named
Auto Trait Implementations§
impl Freeze for Named
impl RefUnwindSafe for Named
impl Send for Named
impl Sync for Named
impl Unpin for Named
impl UnsafeUnpin for Named
impl UnwindSafe for Named
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