pub struct Recorder { /* private fields */ }Expand description
Live in-process recording proxy. Drop the value to begin shutdown,
or call Self::shutdown for an awaitable clean exit.
Implementations§
Source§impl Recorder
impl Recorder
Sourcepub async fn start(config: RecorderConfig) -> Result<Self>
pub async fn start(config: RecorderConfig) -> Result<Self>
Bind to 127.0.0.1:0, spawn a forwarder task, and return a
handle whose Self::url points at the proxy. The cassette
file at config.cassette_path is truncated on start –
each recording run produces a fresh cassette. To accumulate
across runs, copy the file off between sessions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recorder
impl !RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
impl !UnwindSafe for Recorder
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