pub struct HarPlayer { /* private fields */ }Expand description
HAR player for replaying recorded traffic
Implementations§
Source§impl HarPlayer
impl HarPlayer
Sourcepub fn new(har: Har, options: HarOptions) -> Self
pub fn new(har: Har, options: HarOptions) -> Self
Create a new HAR player
Sourcepub fn find_response(&self, method: &str, url: &str) -> Option<&HarResponse>
pub fn find_response(&self, method: &str, url: &str) -> Option<&HarResponse>
Find matching response for a request
Sourcepub fn not_found_behavior(&self) -> NotFoundBehavior
pub fn not_found_behavior(&self) -> NotFoundBehavior
Get behavior for not found requests
Sourcepub fn entry_count(&self) -> usize
pub fn entry_count(&self) -> usize
Get entry count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HarPlayer
impl RefUnwindSafe for HarPlayer
impl Send for HarPlayer
impl Sync for HarPlayer
impl Unpin for HarPlayer
impl UnsafeUnpin for HarPlayer
impl UnwindSafe for HarPlayer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more