pub struct HarRecorder { /* private fields */ }Expand description
A minimal HAR recorder: builds a Har in memory and can write it to disk.
This exists so that route_from_har’s update path has a place to land,
but recording is not wired into the live request stream of pages in this
pass. Constructing a recorder and calling HarRecorder::record_entry
works, but nothing feeds it live traffic automatically. See the report.
Implementations§
Source§impl HarRecorder
impl HarRecorder
pub fn new() -> Self
Sourcepub fn record_entry(&mut self, entry: HarEntry)
pub fn record_entry(&mut self, entry: HarEntry)
Append a pre-built entry. (Not yet driven automatically by page traffic.)
Trait Implementations§
Source§impl Clone for HarRecorder
impl Clone for HarRecorder
Source§fn clone(&self) -> HarRecorder
fn clone(&self) -> HarRecorder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HarRecorder
impl Debug for HarRecorder
Source§impl Default for HarRecorder
impl Default for HarRecorder
Source§fn default() -> HarRecorder
fn default() -> HarRecorder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HarRecorder
impl RefUnwindSafe for HarRecorder
impl Send for HarRecorder
impl Sync for HarRecorder
impl Unpin for HarRecorder
impl UnsafeUnpin for HarRecorder
impl UnwindSafe for HarRecorder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more