Enum ao::AoError [-] [+] [src]

pub enum AoError {
    NoDriver,
    NotFile,
    NotLive,
    BadOption,
    OpenDevice,
    OpenFile,
    FileExists,
    BadFormat,
    Unknown,
}

Result of (most) operations that may fail.

Variants

NoDriver

No driver is available.

This means either: * There is no driver matching the requested name * There are no usable audio output devices

NotFile

The specified driver does not do file output.

NotLive

The specified driver does not do live output.

BadOption

A known driver option has an invalid value.

OpenDevice

Could not open the output device.

For example, if /dev/dsp could not be opened with the OSS driver.

OpenFile

Could not open the output file.

FileExists

The specified file already exists.

BadFormat

The requested stream format is not supported.

This is usually the result of an invalid channel matrix.

Unknown

Unspecified error.

Trait Implementations

impl Error for AoError

fn description(&self) -> &str

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

impl Display for AoError

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

Derived Implementations

impl Clone for AoError

fn clone(&self) -> AoError

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

impl Debug for AoError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for AoError

impl PartialEq for AoError

fn eq(&self, __arg_0: &AoError) -> bool

fn ne(&self, __arg_0: &AoError) -> bool