pub struct LoopedRegion<S, F> { /* private fields */ }Expand description
A source that plays up to the end of a region, then from its start, for ever,
for a worker to fill_from. restart gives the source
from its first frame again, however that is done (a seek, or a new decoder over
the same bytes), and the frames before the region are read and dropped: what
comes out is sample-exact at the join whatever the decoder’s own pages are.
Implementations§
Trait Implementations§
Source§impl<S: Source, F: FnMut() -> Result<S, Error>> Source for LoopedRegion<S, F>
impl<S: Source, F: FnMut() -> Result<S, Error>> Source for LoopedRegion<S, F>
Source§fn total_frames(&self) -> Option<u64>
fn total_frames(&self) -> Option<u64>
How many frames it yields from its start, if that is known without
decoding.
Auto Trait Implementations§
impl<S, F> Freeze for LoopedRegion<S, F>
impl<S, F> RefUnwindSafe for LoopedRegion<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for LoopedRegion<S, F>
impl<S, F> Sync for LoopedRegion<S, F>
impl<S, F> Unpin for LoopedRegion<S, F>
impl<S, F> UnsafeUnpin for LoopedRegion<S, F>where
S: UnsafeUnpin,
F: UnsafeUnpin,
impl<S, F> UnwindSafe for LoopedRegion<S, F>where
S: UnwindSafe,
F: UnwindSafe,
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