pub struct AudioFiles { /* private fields */ }Expand description
Local audio files decoded independently by loader workers.
Implementations§
Source§impl AudioFiles
impl AudioFiles
Trait Implementations§
Source§impl Dataset for AudioFiles
impl Dataset for AudioFiles
Source§type Error = AudioError
type Error = AudioError
An error returned while loading a sample.
Source§fn get_batch_with_context(
&self,
indices: &[usize],
context: &WorkerContext,
) -> Result<Vec<Self::Sample>>
fn get_batch_with_context( &self, indices: &[usize], context: &WorkerContext, ) -> Result<Vec<Self::Sample>>
Loads one index batch with cooperative worker lifecycle context. Read more
Auto Trait Implementations§
impl Forget for AudioFiles
impl Freeze for AudioFiles
impl RefUnwindSafe for AudioFiles
impl Send for AudioFiles
impl Sync for AudioFiles
impl Unpin for AudioFiles
impl UnsafeUnpin for AudioFiles
impl UnwindSafe for AudioFiles
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