Enum interfaces::InterfacesError [−][src]
InterfacesError is the error type that is returned by all functions in this crate. See the documentation on the individual variants for more information.
Variants
Errno(Errno)
Errno indicates that something went wrong with an underlying syscall. The internal value
is the errno
that was returned.
NotSupported(&'static str)
NotSupported indicates that something required for this operation is not currently supported on this platform or computer. The internal string may contain more detail.
Methods
impl InterfacesError
[src]
impl InterfacesError
pub fn last_os_error() -> InterfacesError
[src]
pub fn last_os_error() -> InterfacesError
Create a new instance of InterfacesError
with the error set to the current value of the
libc errno
variable.
Trait Implementations
impl Debug for InterfacesError
[src]
impl Debug for InterfacesError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Errno> for InterfacesError
[src]
impl From<Errno> for InterfacesError
fn from(e: Errno) -> InterfacesError
[src]
fn from(e: Errno) -> InterfacesError
Performs the conversion.
impl Error for InterfacesError
[src]
impl Error for InterfacesError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for InterfacesError
[src]
impl Display for InterfacesError
Auto Trait Implementations
impl Send for InterfacesError
impl Send for InterfacesError
impl Sync for InterfacesError
impl Sync for InterfacesError