Enum interfaces::InterfacesError
source · pub enum InterfacesError {
Errno(Errno),
NotSupported(&'static str),
}
Expand description
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.
Implementations§
source§impl InterfacesError
impl InterfacesError
sourcepub fn last_os_error() -> InterfacesError
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§
source§impl Debug for InterfacesError
impl Debug for InterfacesError
source§impl Display for InterfacesError
impl Display for InterfacesError
source§impl Error for InterfacesError
impl Error for InterfacesError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<Errno> for InterfacesError
impl From<Errno> for InterfacesError
source§fn from(e: Errno) -> InterfacesError
fn from(e: Errno) -> InterfacesError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for InterfacesError
impl Send for InterfacesError
impl Sync for InterfacesError
impl Unpin for InterfacesError
impl UnwindSafe for InterfacesError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more