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 InterfacesErrorpub fn last_os_error() -> InterfacesError[src]
pub fn last_os_error() -> InterfacesErrorCreate 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 InterfacesErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<Errno> for InterfacesError[src]
impl From<Errno> for InterfacesErrorfn from(e: Errno) -> InterfacesError[src]
fn from(e: Errno) -> InterfacesErrorPerforms the conversion.
impl Error for InterfacesError[src]
impl Error for InterfacesErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 InterfacesErrorAuto Trait Implementations
impl Send for InterfacesError
impl Send for InterfacesErrorimpl Sync for InterfacesError
impl Sync for InterfacesError