pub struct ResolutionReport { /* private fields */ }Expand description
Wrapper around nw_resolution_report_t.
Implementations§
Source§impl ResolutionReport
impl ResolutionReport
Sourcepub fn source(&self) -> ResolutionSource
pub fn source(&self) -> ResolutionSource
Source used for this resolution report.
Sourcepub fn milliseconds(&self) -> u64
pub fn milliseconds(&self) -> u64
Duration of this resolution report in milliseconds.
Sourcepub fn endpoint_count(&self) -> u32
pub fn endpoint_count(&self) -> u32
Number of candidate endpoints considered by this step.
Sourcepub fn successful_endpoint(&self) -> Option<Endpoint>
pub fn successful_endpoint(&self) -> Option<Endpoint>
Successful endpoint, if one exists.
Sourcepub fn preferred_endpoint(&self) -> Option<Endpoint>
pub fn preferred_endpoint(&self) -> Option<Endpoint>
Preferred endpoint, if one exists.
Sourcepub fn protocol(&self) -> ResolutionProtocol
pub fn protocol(&self) -> ResolutionProtocol
Resolution protocol used by this step.
Trait Implementations§
Source§impl Clone for ResolutionReport
impl Clone for ResolutionReport
Source§impl Debug for ResolutionReport
impl Debug for ResolutionReport
Source§impl Drop for ResolutionReport
impl Drop for ResolutionReport
impl Send for ResolutionReport
impl Sync for ResolutionReport
Auto Trait Implementations§
impl Freeze for ResolutionReport
impl RefUnwindSafe for ResolutionReport
impl Unpin for ResolutionReport
impl UnsafeUnpin for ResolutionReport
impl UnwindSafe for ResolutionReport
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