Struct rnp::PingResultDto
source · [−]pub struct PingResultDto {Show 15 fields
pub utc_time: DateTime<Utc>,
pub worker_id: u32,
pub protocol: String,
pub target_ip: IpAddr,
pub target_port: u16,
pub source_ip: IpAddr,
pub source_port: u16,
pub is_warmup: bool,
pub is_succeeded: bool,
pub rtt_in_ms: f64,
pub is_timed_out: bool,
pub preparation_error: String,
pub ping_error: String,
pub handshake_error: String,
pub disconnect_error: String,
}
Fields
utc_time: DateTime<Utc>
worker_id: u32
protocol: String
target_ip: IpAddr
target_port: u16
source_ip: IpAddr
source_port: u16
is_warmup: bool
is_succeeded: bool
rtt_in_ms: f64
is_timed_out: bool
preparation_error: String
ping_error: String
handshake_error: String
disconnect_error: String
Implementations
sourceimpl PingResultDto
impl PingResultDto
pub fn to_console_log(&self) -> String
pub fn to_json_lite(&self) -> String
pub fn to_csv_lite(&self) -> String
Trait Implementations
sourceimpl Debug for PingResultDto
impl Debug for PingResultDto
sourceimpl<'de> Deserialize<'de> for PingResultDto
impl<'de> Deserialize<'de> for PingResultDto
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PingResultDto> for PingResultDto
impl PartialEq<PingResultDto> for PingResultDto
sourcefn eq(&self, other: &PingResultDto) -> bool
fn eq(&self, other: &PingResultDto) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<PingResultDto> for PingResultDto
impl PartialOrd<PingResultDto> for PingResultDto
sourcefn partial_cmp(&self, other: &PingResultDto) -> Option<Ordering>
fn partial_cmp(&self, other: &PingResultDto) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for PingResultDto
impl Serialize for PingResultDto
impl StructuralPartialEq for PingResultDto
Auto Trait Implementations
impl RefUnwindSafe for PingResultDto
impl Send for PingResultDto
impl Sync for PingResultDto
impl Unpin for PingResultDto
impl UnwindSafe for PingResultDto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more