Enum ndk::aaudio::AAudioErrorResult[][src]

#[repr(i32)]
pub enum AAudioErrorResult {
Show 17 variants Base, Disconnected, IllegalArgument, Internal, InvalidState, InvalidHandle, Unimplemented, Unavailable, NoFreeHandles, NoMemory, Null, Timeout, WouldBlock, InvalidFormat, OutOfRange, NoService, InvalidRate,
}

Variants

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

Internal

The requested operation is not appropriate for the current state of 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
Timeout
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.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Look up the concrete type from the JVM.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.