pub struct NameServerStats {
pub addr: SocketAddr,
pub proto: Protocol,
pub failures: usize,
pub successes: usize,
pub success_streak: usize,
pub recent_errors: Vec<ResolveErrorKind>,
}Expand description
query statistics for a single name server.
Fields§
§addr: SocketAddrThe address of the name server.
proto: ProtocolThe protocol used to talk to the name server.
failures: usizeThe total number of lookup failures.
successes: usizeThe total number of lookup successes.
success_streak: usizeThe number of successful queries since the last failure.
recent_errors: Vec<ResolveErrorKind>The last N errors seen when querying this nameserver. Configured with
crate::config::NameServerConfig::num_retained_errors.
Trait Implementations§
Source§impl Clone for NameServerStats
impl Clone for NameServerStats
Source§fn clone(&self) -> NameServerStats
fn clone(&self) -> NameServerStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NameServerStats
impl !RefUnwindSafe for NameServerStats
impl Send for NameServerStats
impl Sync for NameServerStats
impl Unpin for NameServerStats
impl UnsafeUnpin for NameServerStats
impl !UnwindSafe for NameServerStats
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