[][src]Enum aaudio::Error

pub enum Error {
    Unknown(i32),
    Disconnected,
    IllegalArgument,
    InvalidState,
    InvalidHandle,
    Unimplemented,
    Unavailable,
    NoFreeHandles,
    NoMemory,
    Null,
    Timeout,
    WouldBlock,
    InvalidFormat,
    OutOfRange,
    NoService,
    InvalidRate,
}

These values are returned from AAudio functions to indicate failure.

Variants

Unknown(i32)

AAudio returned error code that is not a part of this enum

Disconnected

The audio device was disconnected. This could occur, for example, when headphones are plugged in or unplugged. The stream cannot be used after the device is disconnected. Applications should stop and close the stream. If this error is received in an error callback then another thread should be used to stop and close the stream.

IllegalArgument

An invalid parameter was passed to AAudio.

InvalidState

The requested operation is not appropriate for the current state of AAudio.

InvalidHandle

The server rejected the handle used to identify the stream.

Unimplemented

The function is not implemented for this stream.

Unavailable

A resource or information is unavailable. This could occur when an application tries to open too many streams, or a timestamp is not available.

NoFreeHandles

Memory could not be allocated.

NoMemory

Memory could not be allocated.

Null

A NULL pointer was passed to AAudio. Or a NULL pointer was detected internally.

Timeout

An operation took longer than expected.

WouldBlock
InvalidFormat

The requested data format is not supported.

OutOfRange

A requested was out of range.

NoService

The audio service was not available.

InvalidRate

The requested sample rate was not supported.

Trait Implementations

impl Clone for Error[src]

impl Copy for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

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> 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.