pub enum NameSource {
Reverse,
Mdns,
}Expand description
Where a host’s name came from.
A separate axis from FoundBy, not more variants on it: a host can be
found by probe and named by mDNS, or found in the neighbour table and
named by reverse DNS, in any combination. Worth reporting because a
reverse name is what the network calls the host and an mDNS name is what
the device calls itself – neither authoritative, and a reader judging one
needs to know which it is.
Variants§
Reverse
Reverse DNS, or LLMNR/NetBIOS via ping -a on Windows.
Mdns
The host’s own mDNS/DNS-SD announcement.
Trait Implementations§
Source§impl Clone for NameSource
impl Clone for NameSource
impl Copy for NameSource
Source§impl Debug for NameSource
impl Debug for NameSource
impl Eq for NameSource
Source§impl PartialEq for NameSource
impl PartialEq for NameSource
Source§impl Serialize for NameSource
impl Serialize for NameSource
impl StructuralPartialEq for NameSource
Auto Trait Implementations§
impl Freeze for NameSource
impl RefUnwindSafe for NameSource
impl Send for NameSource
impl Sync for NameSource
impl Unpin for NameSource
impl UnsafeUnpin for NameSource
impl UnwindSafe for NameSource
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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