pub struct DnsStopReport {
pub joined: usize,
pub panicked: usize,
pub timed_out: usize,
}Expand description
Outcome of stopping the DNS resolver’s background workers.
A worker is counted exactly once. Successfully joined workers contribute to
joined, workers whose join observed a panic contribute to panicked, and
workers still running when the shared shutdown deadline expires contribute
to timed_out. Timed-out worker handles are detached because a blocking
system resolver call cannot be forcibly cancelled safely.
Fields§
§joined: usizeWorkers that exited and were joined successfully.
panicked: usizeWorkers that exited with a panic.
timed_out: usizeWorkers detached after the shutdown deadline expired.
Trait Implementations§
Source§impl Clone for DnsStopReport
impl Clone for DnsStopReport
impl Copy for DnsStopReport
Source§impl Debug for DnsStopReport
impl Debug for DnsStopReport
Source§impl Default for DnsStopReport
impl Default for DnsStopReport
impl Eq for DnsStopReport
Source§impl PartialEq for DnsStopReport
impl PartialEq for DnsStopReport
impl StructuralPartialEq for DnsStopReport
Auto Trait Implementations§
impl Freeze for DnsStopReport
impl RefUnwindSafe for DnsStopReport
impl Send for DnsStopReport
impl Sync for DnsStopReport
impl Unpin for DnsStopReport
impl UnsafeUnpin for DnsStopReport
impl UnwindSafe for DnsStopReport
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