[][src]Struct libpulse_sys::sample::pa_sample_spec

#[repr(C)]pub struct pa_sample_spec {
    pub format: pa_sample_format_t,
    pub rate: u32,
    pub channels: u8,
}

A sample format and attribute specification.

Fields

format: pa_sample_format_t

The sample format.

rate: u32

The sample rate. (e.g. 44100).

channels: u8

Audio channels. (1 for mono, 2 for stereo, ...).

Trait Implementations

impl Clone for pa_sample_spec[src]

impl Copy for pa_sample_spec[src]

impl Debug for pa_sample_spec[src]

impl Eq for pa_sample_spec[src]

impl PartialEq<pa_sample_spec> for pa_sample_spec[src]

impl StructuralEq for pa_sample_spec[src]

impl StructuralPartialEq for pa_sample_spec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.