pub struct Recording { /* private fields */ }Expand description
What one capture’s writer and readers share: each reader’s queue of unread samples, the count written, and how capture ended. It keeps no history: a sample lives only in the queues of readers yet to take it.
Implementations§
Source§impl Recording
impl Recording
Sourcepub fn open() -> (RecordingReader, RecordingWriter)
pub fn open() -> (RecordingReader, RecordingWriter)
A new recording’s two ends. Capture is live at once.
pub fn open_spooled( directory: &Path, maximum_duration: Duration, ) -> Result<(RecordingReader, SpooledRecordingWriter), CaptureError>
Available on non-
target_family=wasm only.Auto Trait Implementations§
impl !Freeze for Recording
impl RefUnwindSafe for Recording
impl Send for Recording
impl Sync for Recording
impl Unpin for Recording
impl UnsafeUnpin for Recording
impl UnwindSafe for Recording
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