[][src]Enum portaudio_rs::hostapi::HostApiType

#[repr(u32)]
pub enum HostApiType {
    InDevelopment,
    DirectSound,
    MME,
    ASIO,
    SoundManager,
    CoreAudio,
    OSS,
    ALSA,
    AL,
    BeOS,
    WDMKS,
    JACK,
    WASAPI,
    AudioScienceHPI,
    Unknown,
}

Possible Host API types

Variants

InDevelopment
DirectSound
MME
ASIO
SoundManager
CoreAudio
OSS
ALSA
AL
BeOS
WDMKS
JACK
WASAPI
AudioScienceHPI
Unknown

Added for when FromPrimitive returns None

Methods

impl HostApiType[src]

pub fn to_api_index(self) -> Result<HostApiIndex, PaError>[src]

Convert a static host API unique identifier, into a runtime host API index.

pub fn from_u32(num: u32) -> HostApiType[src]

Get the enum value corresponding to the u32

Trait Implementations

impl Clone for HostApiType[src]

impl Copy for HostApiType[src]

Auto Trait Implementations

impl RefUnwindSafe for HostApiType

impl Send for HostApiType

impl Sync for HostApiType

impl Unpin for HostApiType

impl UnwindSafe for HostApiType

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.