[][src]Enum winaudio::Error

#[repr(u32)]pub enum Error {
    Error,
    BadDeviceId,
    NotEnabled,
    Allocated,
    InvalidHandle,
    NoDriver,
    NoMemory,
    NotSupported,
    BadErrorNumber,
    InvalidFlag,
    InvalidParam,
    HandleBusy,
    InvalidAlias,
    BadDatabase,
    KeyNotFound,
    ReadError,
    WriteError,
    DeleteError,
    ValueNotFound,
    NoDriverCallback,
    MoreData,
    BadFormat,
    StillPlaying,
    Unprepared,
    Sync,
}

Errors that can occur when working with Windows' sound API.

Variants

Error

Unspecified error.

BadDeviceId

Device ID out of range.

NotEnabled

Driver failed enable.

Allocated

Device already allocated.

InvalidHandle

Device handle is invalid.

NoDriver

No device driver present.

NoMemory

Memory allocation error.

NotSupported

Function isn't supported.

BadErrorNumber

Error value out of range.

InvalidFlag

Invalid flag passed.

InvalidParam

Invalid parameter passed.

HandleBusy

Handle being used.

InvalidAlias

Specified alias not found.

BadDatabase

Bad registry database.

KeyNotFound

Registry key not found.

ReadError

Registry read error.

WriteError

Registry write error.

DeleteError

Registry delete error.

ValueNotFound

Registry value not found.

NoDriverCallback

Driver does not call DriverCallback.

MoreData

More data to be returned.

BadFormat

Attempted to open with an unsupported waveform-audio format.

StillPlaying

There are still buffers in the queue.

Unprepared

The data block pointed to by the parameter hasn't been prepared.

Sync

The device is synchronous but the device was opened without using the AllowSync flag.

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Eq for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

impl TryFrom<u32> for Error[src]

type Error = u32

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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.