Struct gstreamer_audio::AudioInfoBuilder
source · pub struct AudioInfoBuilder<'a> {
format: AudioFormat,
rate: u32,
channels: u32,
positions: Option<&'a [AudioChannelPosition]>,
flags: Option<AudioFlags>,
layout: Option<AudioLayout>,
}
Fields§
§format: AudioFormat
§rate: u32
§channels: u32
§positions: Option<&'a [AudioChannelPosition]>
§flags: Option<AudioFlags>
§layout: Option<AudioLayout>
Implementations§
source§impl<'a> AudioInfoBuilder<'a>
impl<'a> AudioInfoBuilder<'a>
pub fn build(self) -> Result<AudioInfo, BoolError>
pub fn positions( self, positions: &'a [AudioChannelPosition], ) -> AudioInfoBuilder<'a>
pub fn flags(self, flags: AudioFlags) -> Self
pub fn layout(self, layout: AudioLayout) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AudioInfoBuilder<'a>
impl<'a> RefUnwindSafe for AudioInfoBuilder<'a>
impl<'a> Send for AudioInfoBuilder<'a>
impl<'a> Sync for AudioInfoBuilder<'a>
impl<'a> Unpin for AudioInfoBuilder<'a>
impl<'a> UnwindSafe for AudioInfoBuilder<'a>
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> 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