Enum alto::AltoError [−][src]
pub enum AltoError { InvalidDevice, InvalidContext, InvalidName, InvalidEnum, InvalidValue, InvalidOperation, OutOfMemory, UnknownAlcError(ALCint), UnknownAlError(ALint), UnsupportedVersion { major: ALCint, minor: ALCint, }, ExtensionNotPresent, NullError, WrongDevice, WrongContext, Io(Error), }
An error as reported by alcGetError
or alGetError
, plus some Alto specific variants.
Variants
InvalidDevice
ALC_INVALID_DEVICE
InvalidContext
ALC_INVALID_CONTEXT
InvalidName
AL_INVALID_NAME
InvalidEnum
ALC/AL_INVALID_ENUM
InvalidValue
ALC/AL_INVALID_VALUE
InvalidOperation
AL_INVALID_OPERATION
OutOfMemory
ALC/AL_OUT_OF_MEMORY
UnknownAlcError(ALCint)
UnknownAlError(ALint)
UnsupportedVersion
The underlying implementation is not compatible with the 1.1 spec. Alto specific.
Fields of UnsupportedVersion
major: ALCint | |
minor: ALCint |
ExtensionNotPresent
The requested action can't be performed because the required extension is unavaiable. Alto specific.
NullError
Resource creation failed without setting an error code.
WrongDevice
A resource belongs to another device and is not eligible.
WrongContext
A resource belongs to another context and is not eligible.
Io(Error)
There was an underlying IO error, usually from a failure when loading the OpenAL dylib. Alto specific.
Trait Implementations
impl Debug for AltoError
[src]
impl Debug for AltoError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for AltoError
[src]
impl Display for AltoError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for AltoError
[src]
impl StdError for AltoError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for AltoError
[src]
impl From<Error> for AltoError