pub trait HttpDistance {
// Required methods
fn get_version(&self) -> Version;
fn get_horder(&self) -> &[Header];
fn get_habsent(&self) -> &[Header];
fn get_expsw(&self) -> &str;
// Provided methods
fn distance_ip_version(&self, other: &Signature) -> Option<u32> { ... }
fn distance_header(observed: &[Header], signature: &[Header]) -> Option<u32> { ... }
fn distance_horder(&self, other: &Signature) -> Option<u32> { ... }
fn distance_habsent(&self, other: &Signature) -> Option<u32> { ... }
fn distance_expsw(&self, other: &Signature) -> Option<u32> { ... }
}
Required Methods§
fn get_version(&self) -> Version
fn get_horder(&self) -> &[Header]
fn get_habsent(&self) -> &[Header]
fn get_expsw(&self) -> &str
Provided Methods§
fn distance_ip_version(&self, other: &Signature) -> Option<u32>
fn distance_header(observed: &[Header], signature: &[Header]) -> Option<u32>
fn distance_horder(&self, other: &Signature) -> Option<u32>
fn distance_habsent(&self, other: &Signature) -> Option<u32>
fn distance_expsw(&self, other: &Signature) -> Option<u32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.