#[non_exhaustive]pub struct AudioTrackInfo {
pub sample_rate: u32,
pub channels: ChannelLayout,
}Expand description
What a container declares about an audio track.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sample_rate: u32Samples per second per channel.
channels: ChannelLayoutThe channels.
Implementations§
Source§impl AudioTrackInfo
impl AudioTrackInfo
Sourcepub const fn new(sample_rate: u32, channels: ChannelLayout) -> Self
pub const fn new(sample_rate: u32, channels: ChannelLayout) -> Self
A track at sample_rate with channels.
Trait Implementations§
Source§impl Clone for AudioTrackInfo
impl Clone for AudioTrackInfo
Source§fn clone(&self) -> AudioTrackInfo
fn clone(&self) -> AudioTrackInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioTrackInfo
Source§impl Debug for AudioTrackInfo
impl Debug for AudioTrackInfo
impl Eq for AudioTrackInfo
Source§impl PartialEq for AudioTrackInfo
impl PartialEq for AudioTrackInfo
impl StructuralPartialEq for AudioTrackInfo
Auto Trait Implementations§
impl Freeze for AudioTrackInfo
impl RefUnwindSafe for AudioTrackInfo
impl Send for AudioTrackInfo
impl Sync for AudioTrackInfo
impl Unpin for AudioTrackInfo
impl UnsafeUnpin for AudioTrackInfo
impl UnwindSafe for AudioTrackInfo
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