Skip to main content

HarEntryExtension

Trait HarEntryExtension 

pub trait HarEntryExtension: Sync {
    // Required method
    fn write_fields<W>(
        &self,
        writer: &mut HarObjectWriter<'_, W>,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
       where W: AsyncWrite + Unpin + Send;
}
Available on crate features http and std only.
Expand description

Optional protocol-owned HAR fields, written from typed values with backpressure. () adds no fields.

Required Methods§

fn write_fields<W>( &self, writer: &mut HarObjectWriter<'_, W>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
where W: AsyncWrite + Unpin + Send,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

§

impl HarEntryExtension for ()

§

async fn write_fields<W>( &self, _: &mut HarObjectWriter<'_, W>, ) -> Result<(), Box<dyn Error + Send + Sync>>
where W: AsyncWrite + Unpin + Send,

Implementors§