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 Copy for Error
[src]
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 From<AL> for Error
[src]
impl From<ALC> for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more