pub struct AudioSpec { /* private fields */ }Implementations§
Source§impl AudioSpec
impl AudioSpec
pub fn new( channel_layout: ChannelLayout, format: Sample, sample_rate: u32, ) -> Self
pub fn with_codec(self, codec: Option<Codec>) -> Self
pub fn with_frame_size(self, frame_size: u32) -> Self
pub fn with_time_base(self, time_base: Rational) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioSpec
impl RefUnwindSafe for AudioSpec
impl Send for AudioSpec
impl Sync for AudioSpec
impl Unpin for AudioSpec
impl UnsafeUnpin for AudioSpec
impl UnwindSafe for AudioSpec
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