pub struct Replay { /* private fields */ }Expand description
A transport that replays recorded responses from a directory, for tests and offline demos.
The directory holds index.json, an object from URL to a file name in the same directory. A
URL not in the index fails like a network error. It counts its calls, so a test can assert
that none were made.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Replay
impl !RefUnwindSafe for Replay
impl !Sync for Replay
impl Send for Replay
impl Unpin for Replay
impl UnsafeUnpin for Replay
impl UnwindSafe for Replay
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