pub struct MeasurementResult {Show 13 fields
pub fw: u32,
pub measurement_type: MeasurementType,
pub prb_id: ProbeId,
pub msm_id: MeasurementId,
pub timestamp: Timestamp,
pub af: u8,
pub dst_addr: IpAddr,
pub dst_name: Option<String>,
pub src_addr: Option<IpAddr>,
pub proto: Option<String>,
pub ttl: Option<u8>,
pub size: Option<u16>,
pub data: MeasurementData,
}Expand description
Measurement result envelope
Fields§
§fw: u32Firmware version
measurement_type: MeasurementTypeMeasurement type
prb_id: ProbeIdProbe ID
msm_id: MeasurementIdMeasurement ID
timestamp: TimestampTimestamp
af: u8Address family (4 or 6)
dst_addr: IpAddrDestination address
dst_name: Option<String>Destination name (hostname, defaults to dst_addr if not specified)
src_addr: Option<IpAddr>Source address (optional)
proto: Option<String>Protocol (ICMP, UDP, TCP)
ttl: Option<u8>TTL (for ping/traceroute)
size: Option<u16>Packet size (for ping/traceroute)
data: MeasurementDataProtocol-specific result data
Trait Implementations§
Source§impl Clone for MeasurementResult
impl Clone for MeasurementResult
Source§fn clone(&self) -> MeasurementResult
fn clone(&self) -> MeasurementResult
Returns a duplicate 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 MeasurementResult
impl Debug for MeasurementResult
Source§impl<'de> Deserialize<'de> for MeasurementResult
impl<'de> Deserialize<'de> for MeasurementResult
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 Freeze for MeasurementResult
impl RefUnwindSafe for MeasurementResult
impl Send for MeasurementResult
impl Sync for MeasurementResult
impl Unpin for MeasurementResult
impl UnwindSafe for MeasurementResult
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