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 PartialEq for AoError
[src]
fn eq(&self, __arg_0: &AoError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for AoError
[src]
impl Debug for AoError
[src]
impl Clone for AoError
[src]
fn clone(&self) -> AoError
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 Error for AoError
[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