[][src]Enum soundio::Backend

pub enum Backend {
    None,
    Jack,
    PulseAudio,
    Alsa,
    CoreAudio,
    Wasapi,
    Dummy,
}

Backend indicates one of the supported audio backends.

Linux supports Also, and optionally PulseAudio, and JACK.

Windows supports Wasapi, and MacOS supports CoreAudio. All platforms support the Dummy backend.

The Backend type supports the Display trait, so you can use it in println!().

The only use for Backend::None is that it is returned from Context::current_backend() if the Context isn't connected.

Examples

println!("The name of PulseAudio is {}", soundio::Backend::PulseAudio);

Variants

None
Jack
PulseAudio
Alsa
CoreAudio
Wasapi
Dummy

Trait Implementations

impl Clone for Backend[src]

impl Copy for Backend[src]

impl Debug for Backend[src]

impl Display for Backend[src]

impl Eq for Backend[src]

impl From<Backend> for SoundIoBackend[src]

impl From<SoundIoBackend> for Backend[src]

impl PartialEq<Backend> for Backend[src]

impl StructuralEq for Backend[src]

impl StructuralPartialEq for Backend[src]

Auto Trait Implementations

impl RefUnwindSafe for Backend

impl Send for Backend

impl Sync for Backend

impl Unpin for Backend

impl UnwindSafe for Backend

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> ToString for T where
    T: Display + ?Sized
[src]

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.