pub struct RecordedAudio { /* private fields */ }Expand description
The result of a finished recording: its length and, on a target with a
filesystem, its WAV. A WAV this crate wrote is deleted when its owner
drops. A caller’s own file is only borrowed. A recording ended by
RecordingWriter::finish has none.
Implementations§
Source§impl RecordedAudio
impl RecordedAudio
Sourcepub fn path(&self) -> Option<&Path>
Available on non-target_family=wasm only.
pub fn path(&self) -> Option<&Path>
target_family=wasm only.None for a recording ended by RecordingWriter::finish, which
never touched the filesystem.
Auto Trait Implementations§
impl Freeze for RecordedAudio
impl RefUnwindSafe for RecordedAudio
impl Send for RecordedAudio
impl Sync for RecordedAudio
impl Unpin for RecordedAudio
impl UnsafeUnpin for RecordedAudio
impl UnwindSafe for RecordedAudio
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