#[repr(C)]pub struct pa_sample_spec {
pub format: pa_sample_format_t,
pub rate: u32,
pub channels: u8,
}Expand description
A sample format and attribute specification.
Fields§
§format: pa_sample_format_tThe sample format.
rate: u32The sample rate. (e.g. 44100).
channels: u8Audio channels. (1 for mono, 2 for stereo, …).
Trait Implementations§
Source§impl Clone for pa_sample_spec
impl Clone for pa_sample_spec
Source§fn clone(&self) -> pa_sample_spec
fn clone(&self) -> pa_sample_spec
Returns a duplicate of the value. Read more
1.0.0 · 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 pa_sample_spec
impl Debug for pa_sample_spec
Source§impl PartialEq for pa_sample_spec
impl PartialEq for pa_sample_spec
impl Copy for pa_sample_spec
impl Eq for pa_sample_spec
impl StructuralPartialEq for pa_sample_spec
Auto Trait Implementations§
impl Freeze for pa_sample_spec
impl RefUnwindSafe for pa_sample_spec
impl Send for pa_sample_spec
impl Sync for pa_sample_spec
impl Unpin for pa_sample_spec
impl UnwindSafe for pa_sample_spec
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