pub struct AudioFrameCreator;Implementations§
Source§impl AudioFrameCreator
impl AudioFrameCreator
pub fn create( &self, format: SampleFormat, channels: u8, samples: u32, sample_rate: u32, ) -> Result<Frame<'static>>
pub fn create_with_descriptor( &self, desc: AudioFrameDescriptor, ) -> Result<Frame<'static>>
pub fn create_from_buffer<'a, T>( &self, format: SampleFormat, channels: u8, samples: u32, sample_rate: u32, buffer: T, ) -> Result<Frame<'a>>
pub fn create_from_buffer_with_descriptor<'a, T>( &self, desc: AudioFrameDescriptor, buffer: T, ) -> Result<Frame<'a>>
pub fn create_empty( &self, format: SampleFormat, channels: u8, samples: u32, sample_rate: u32, ) -> Result<Frame<'static>>
pub fn create_empty_with_descriptor( &self, desc: AudioFrameDescriptor, ) -> Result<Frame<'static>>
Auto Trait Implementations§
impl Freeze for AudioFrameCreator
impl RefUnwindSafe for AudioFrameCreator
impl Send for AudioFrameCreator
impl Sync for AudioFrameCreator
impl Unpin for AudioFrameCreator
impl UnwindSafe for AudioFrameCreator
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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