Struct rnp::PingResult [−][src]
pub struct PingResult { /* fields omitted */ }
Implementations
pub fn new(
time: &DateTime<Utc>,
worker_id: u32,
protocol: &'static str,
target: SocketAddr,
source: SocketAddr,
is_warmup: bool,
is_succeeded: bool,
round_trip_time: Duration,
is_timed_out: bool,
warning: Option<PingClientWarning>,
error: Option<PingClientError>
) -> PingResult
pub fn new(
time: &DateTime<Utc>,
worker_id: u32,
protocol: &'static str,
target: SocketAddr,
source: SocketAddr,
is_warmup: bool,
is_succeeded: bool,
round_trip_time: Duration,
is_timed_out: bool,
warning: Option<PingClientWarning>,
error: Option<PingClientError>
) -> PingResult
Contracts
Pre-condition: is_succeeded ->! is_timed_out && error.is_none()
Pre-condition: warning.is_some() -> is_succeeded
Pre-condition: ! is_succeeded -> (is_timed_out || error.is_some()) && warning.is_none()
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PingResult
impl Send for PingResult
impl !Sync for PingResult
impl Unpin for PingResult
impl !UnwindSafe for PingResult
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more