[][src]Enum alto::AltoError

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: ALCintminor: 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 From<Error> for AltoError[src]

impl Debug for AltoError[src]

impl Display for AltoError[src]

impl Error for AltoError[src]

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

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

Auto Trait Implementations

impl Send for AltoError

impl Sync for AltoError

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T