HttpDistance

Trait HttpDistance 

Source
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§

Source

fn get_version(&self) -> Version

Source

fn get_horder(&self) -> &[Header]

Source

fn get_habsent(&self) -> &[Header]

Source

fn get_expsw(&self) -> &str

Provided Methods§

Source

fn distance_ip_version(&self, other: &Signature) -> Option<u32>

Source

fn distance_header(observed: &[Header], signature: &[Header]) -> Option<u32>

Source

fn distance_horder(&self, other: &Signature) -> Option<u32>

Source

fn distance_habsent(&self, other: &Signature) -> Option<u32>

Source

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.

Implementors§