Enum openal::Error [] [src]

pub enum Error {
    None,
    InvalidDevice,
    InvalidContext,
    InvalidName,
    InvalidOperation,
    InvalidEnum,
    InvalidValue,
    OutOfMemory,
}

OpenAL error type.

Variants

None

There is no current error.

InvalidDevice

The device handle or specifier names an inaccessible driver/server.

InvalidContext

The Context argument does not name a valid context.

InvalidName

Invalid name parameter.

InvalidOperation

Illegal call.

InvalidEnum

Invalid parameter.

InvalidValue

Invalid enum parameter value.

OutOfMemory

Unable to allocate memory.

Methods

impl Error
[src]

fn last() -> Option<Self>

Check if there was an error on the last operation.

fn last_for<T: Device>(device: &T) -> Option<Self>

Check if there was an error on the last operation of the given device.

Trait Implementations

impl Clone for Error
[src]

fn clone(&self) -> Error

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl From<AL> for Error
[src]

fn from(value: AL) -> Error

Performs the conversion.

impl From<ALC> for Error
[src]

fn from(value: ALC) -> Error

Performs the conversion.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Debug for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Error for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more