Enum ao_rs::error::Error
[−]
[src]
pub enum Error { Unknown, NoDriver, NotFile, NotLive, BadOption, OpenDevice, OpenFile, FileExists, BadFormat, }
Variants
Unknown
NoDriver
NotFile
NotLive
BadOption
OpenDevice
OpenFile
FileExists
BadFormat
Methods
impl Error
[src]
pub fn from_errno() -> Self
[src]
pub fn from_u32(code: u32) -> Self
[src]
pub fn to_str(&self) -> &str
[src]
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more