pub struct SampleSpec {
pub rate: u32,
pub channels: u8,
pub format: SampleFormat,
}Expand description
Sample specification
Fields§
§rate: u32Sample rate in Hz
channels: u8Number of channels
format: SampleFormatSample format
Trait Implementations§
Source§impl Clone for SampleSpec
impl Clone for SampleSpec
Source§fn clone(&self) -> SampleSpec
fn clone(&self) -> SampleSpec
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 moreSource§impl Debug for SampleSpec
impl Debug for SampleSpec
Source§impl PartialEq for SampleSpec
impl PartialEq for SampleSpec
impl StructuralPartialEq for SampleSpec
Auto Trait Implementations§
impl Freeze for SampleSpec
impl RefUnwindSafe for SampleSpec
impl Send for SampleSpec
impl Sync for SampleSpec
impl Unpin for SampleSpec
impl UnsafeUnpin for SampleSpec
impl UnwindSafe for SampleSpec
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