#[non_exhaustive]pub enum MediaBuffer {
Audio(AudioBuffer),
}Expand description
The unit of data that flows through a pipeline. v1 only has Audio; Video and
Subtitle are additive in v2 (see the PRD’s v2 video path).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Audio(AudioBuffer)
Implementations§
Source§impl MediaBuffer
impl MediaBuffer
pub fn as_audio(&self) -> Option<&AudioBuffer>
pub fn into_audio(self) -> Option<AudioBuffer>
Trait Implementations§
Source§impl Clone for MediaBuffer
impl Clone for MediaBuffer
Auto Trait Implementations§
impl Freeze for MediaBuffer
impl RefUnwindSafe for MediaBuffer
impl Send for MediaBuffer
impl Sync for MediaBuffer
impl Unpin for MediaBuffer
impl UnsafeUnpin for MediaBuffer
impl UnwindSafe for MediaBuffer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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