Struct alsa::Error
[−]
[src]
pub struct Error(_, _);
ALSA error
Most ALSA functions can return a negative error code.
If so, then that error code is wrapped into this Error struct.
An Error is also returned in case ALSA returns a string that
cannot be translated into Rust's UTF-8 strings.
Methods
impl Error[src]
fn new(func: &'static str, res: c_int) -> Error[src]
fn unsupported(func: &'static str) -> Error[src]
fn func(&self) -> &'static str[src]
The function which failed.
fn errno(&self) -> Option<Errno>[src]
The errno, if any.
fn nix_error(&self) -> Error[src]
Underlying error
Trait Implementations
impl Debug for Error[src]
impl Clone for Error[src]
fn clone(&self) -> Error[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Error[src]
fn eq(&self, __arg_0: &Error) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Error) -> bool[src]
This method tests for !=.
impl Copy for Error[src]
impl StdError for Error[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>[src]
The lower-level cause of this error, if any. Read more