Skip to main content

HttpDisplayFormat

Trait HttpDisplayFormat 

Source
pub trait HttpDisplayFormat {
    // Required methods
    fn get_version(&self) -> Version;
    fn get_horder(&self) -> &[Header];
    fn get_habsent(&self) -> &[Header];
    fn get_expsw(&self) -> &str;

    // Provided method
    fn format_http_display(&self, f: &mut Formatter<'_>) -> Result<(), Error> { ... }
}
Expand description

Trait used to render HTTP signatures in the canonical p0f text form version:horder:habsent:expsw.

huginn-net-db implements this trait for its own http::Signature and reuses the same shape, so observations and DB signatures print identically.

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 format_http_display(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HttpDisplayFormat for Signature

Implementors§