pub struct ProtocolDifferentialScore {
pub icmp_tcp_diff: f64,
pub icmp_udp_diff: f64,
pub tcp_udp_diff: f64,
pub consistency: f64,
pub latency_variance_ms: f64,
}Expand description
Protocol Differential Score - quantifies behavioral differences across protocols
Fields§
§icmp_tcp_diff: f64ICMP vs TCP differential (0.0 = identical, 1.0 = completely different)
icmp_udp_diff: f64ICMP vs UDP differential
tcp_udp_diff: f64TCP vs UDP differential
consistency: f64Overall path consistency score (0.0 = inconsistent, 1.0 = consistent)
latency_variance_ms: f64Latency variance across protocols
Implementations§
Source§impl ProtocolDifferentialScore
impl ProtocolDifferentialScore
Sourcepub fn calculate(results: &[ProbeResult]) -> Self
pub fn calculate(results: &[ProbeResult]) -> Self
Calculate the Protocol Differential Score from probe results
Sourcepub fn interpret(&self) -> NetworkBehavior
pub fn interpret(&self) -> NetworkBehavior
Interpret the score as a network behavior type
Trait Implementations§
Source§impl Clone for ProtocolDifferentialScore
impl Clone for ProtocolDifferentialScore
Source§fn clone(&self) -> ProtocolDifferentialScore
fn clone(&self) -> ProtocolDifferentialScore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProtocolDifferentialScore
impl Debug for ProtocolDifferentialScore
Source§impl Default for ProtocolDifferentialScore
impl Default for ProtocolDifferentialScore
Source§fn default() -> ProtocolDifferentialScore
fn default() -> ProtocolDifferentialScore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProtocolDifferentialScore
impl RefUnwindSafe for ProtocolDifferentialScore
impl Send for ProtocolDifferentialScore
impl Sync for ProtocolDifferentialScore
impl Unpin for ProtocolDifferentialScore
impl UnsafeUnpin for ProtocolDifferentialScore
impl UnwindSafe for ProtocolDifferentialScore
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