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§
Source§impl 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§
Source§impl Debug for PingResultDto
impl Debug for PingResultDto
Source§impl<'de> Deserialize<'de> for PingResultDto
impl<'de> Deserialize<'de> for PingResultDto
Source§fn 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
Source§impl PartialEq for PingResultDto
impl PartialEq for PingResultDto
Source§impl PartialOrd for PingResultDto
impl PartialOrd for PingResultDto
Source§impl Serialize for PingResultDto
impl Serialize for PingResultDto
impl StructuralPartialEq for PingResultDto
Auto Trait Implementations§
impl Freeze for PingResultDto
impl RefUnwindSafe for PingResultDto
impl Send for PingResultDto
impl Sync for PingResultDto
impl Unpin for PingResultDto
impl UnwindSafe for PingResultDto
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