pub struct TransportCompatibility {
pub checks: Vec<Http2CheckResult>,
pub score: f64,
pub confidence: f64,
pub coverage: f64,
pub matched_count: usize,
pub total_checks: usize,
pub mismatches: Vec<String>,
}Expand description
Per-target compatibility score with confidence/coverage markers.
§Example
use stygian_browser::transport_realism::{
score, TransportObservation, TransportProfile,
};
let profile = TransportProfile::default();
let observation = TransportObservation::chrome_136_reference();
let report = score(&profile, &observation);
assert!(report.compatibility.is_high_confidence());
assert!(report.compatibility.is_well_covered());Fields§
§checks: Vec<Http2CheckResult>Per-check breakdown.
score: f64Per-target compatibility score in [0.0, 1.0].
confidence: f64Confidence marker in [0.0, 1.0]. Reflects how reliable
the score is given the supplied observations and the
profile’s expectations. 0.0 when no HTTP/2 observations
were available.
coverage: f64Coverage marker in [0.0, 1.0]. Reflects what fraction of
the profile’s expected checks were actually observed.
0.0 when no HTTP/2 observations were available.
matched_count: usizeNumber of checks that matched the reference.
total_checks: usizeTotal number of checks the profile expected.
mismatches: Vec<String>Human-readable mismatch descriptions (empty when all checks matched).
Implementations§
Source§impl TransportCompatibility
impl TransportCompatibility
Sourcepub fn is_well_covered(&self) -> bool
pub fn is_well_covered(&self) -> bool
true when coverage is at least 0.5 (i.e. the observation
captured at least half of the expected HTTP/2 checks).
Sourcepub fn is_high_confidence(&self) -> bool
pub fn is_high_confidence(&self) -> bool
true when confidence is at least 0.5 (i.e. the score is
derived from enough observation signal to trust).
Sourcepub fn is_strong_match(&self) -> bool
pub fn is_strong_match(&self) -> bool
true when score is at least 0.95 — a strong match.
Trait Implementations§
Source§impl Clone for TransportCompatibility
impl Clone for TransportCompatibility
Source§fn clone(&self) -> TransportCompatibility
fn clone(&self) -> TransportCompatibility
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more