Struct rushmap_core::result::PingResponse
source · pub struct PingResponse {
pub seq: u8,
pub ip_addr: IpAddr,
pub host_name: String,
pub port_number: Option<u16>,
pub ttl: u8,
pub hop: u8,
pub rtt: u64,
pub status: ProbeStatus,
pub protocol: String,
pub node_type: NodeType,
}Fields§
§seq: u8Sequence number
ip_addr: IpAddrIP address
host_name: StringHost name
port_number: Option<u16>Port
ttl: u8Time To Live
hop: u8Number of hops
rtt: u64Round Trip Time (microsecond)
status: ProbeStatusStatus
protocol: StringProtocol
node_type: NodeTypeNode type
Implementations§
source§impl PingResponse
impl PingResponse
pub fn new() -> PingResponse
Trait Implementations§
source§impl Clone for PingResponse
impl Clone for PingResponse
source§fn clone(&self) -> PingResponse
fn clone(&self) -> PingResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PingResponse
impl Debug for PingResponse
source§impl<'de> Deserialize<'de> for PingResponse
impl<'de> Deserialize<'de> for PingResponse
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
Auto Trait Implementations§
impl RefUnwindSafe for PingResponse
impl Send for PingResponse
impl Sync for PingResponse
impl Unpin for PingResponse
impl UnwindSafe for PingResponse
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