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§
fn get_version(&self) -> Version
fn get_horder(&self) -> &[Header]
fn get_habsent(&self) -> &[Header]
fn get_expsw(&self) -> &str
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".