pub enum Error {
AbiLimitation(AbiVersion, String),
GpioChip(PathBuf, ErrorKind),
InvalidArgument(String),
NoGpioChips(),
NonuniqueLineName(String),
OsError(Errno),
UapiError(UapiCall, Error),
UnexpectedResponse(String),
UnsupportedAbi(AbiVersion, AbiSupportKind),
}
Expand description
Errors returned by gpiocdev
functions.
Variants
AbiLimitation(AbiVersion, String)
An operation cannot be performed due to a limitation in the ABI version being used.
GpioChip(PathBuf, ErrorKind)
Problem accessing GPIO chip character devices
InvalidArgument(String)
An error returned when there is a problem with an argument.
NoGpioChips()
No gpiochips are available to the user.
NonuniqueLineName(String)
Returned when the strict mode of find_named_lines
finds multiple lines with the same name.
OsError(Errno)
An error returned from an underlying os call.
UapiError(UapiCall, Error)
An error returned from an underlying uAPI call.
UnexpectedResponse(String)
The response to a uAPI command contained unexpected content.
UnsupportedAbi(AbiVersion, AbiSupportKind)
The platform or library does not support the requested uAPI ABI version.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more