pub struct ReplayHandler { /* private fields */ }Expand description
Replay handler for serving recorded requests
Implementations§
Source§impl ReplayHandler
impl ReplayHandler
Sourcepub async fn has_fixture(&self, fingerprint: &RequestFingerprint) -> bool
pub async fn has_fixture(&self, fingerprint: &RequestFingerprint) -> bool
Check if a fixture exists for the given fingerprint
Sourcepub async fn load_fixture(
&self,
fingerprint: &RequestFingerprint,
) -> Result<Option<RecordedRequest>>
pub async fn load_fixture( &self, fingerprint: &RequestFingerprint, ) -> Result<Option<RecordedRequest>>
Load a recorded request from fixture
Auto Trait Implementations§
impl Freeze for ReplayHandler
impl RefUnwindSafe for ReplayHandler
impl Send for ReplayHandler
impl Sync for ReplayHandler
impl Unpin for ReplayHandler
impl UnwindSafe for ReplayHandler
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