pub struct WindowedAudioSource<D> {
pub decoder: D,
pub window: Option<AudioBlock>,
/* private fields */
}Expand description
One window of a source stream and the decoder that fills it.
Fields§
§decoder: DThe decoder filling the window.
window: Option<AudioBlock>The decoded samples held, from the read’s start.
Auto Trait Implementations§
impl<D> Forget for WindowedAudioSource<D>
impl<D> Freeze for WindowedAudioSource<D>where
D: Freeze,
impl<D> Move for WindowedAudioSource<D>
impl<D> RefUnwindSafe for WindowedAudioSource<D>where
D: RefUnwindSafe,
impl<D> Send for WindowedAudioSource<D>where
D: Send,
impl<D> Sync for WindowedAudioSource<D>where
D: Sync,
impl<D> Unpin for WindowedAudioSource<D>where
D: Unpin,
impl<D> UnsafeUnpin for WindowedAudioSource<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for WindowedAudioSource<D>where
D: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more