pub enum Error {
AbiLimitation(AbiVersion, String),
GpioChip(PathBuf, ErrorKind),
InvalidArgument(String),
NoGpioChips(),
NonuniqueLineName(String),
Os(Errno),
Uapi(UapiCall, Error),
UnexpectedResponse(String),
UnsupportedAbi(AbiVersion, AbiSupportKind),
NoAbiSupport(),
}
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.
Os(Errno)
An error returned from an underlying os call.
Uapi(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 kernel or build does not support the requested uAPI ABI version.
NoAbiSupport()
The kernel has no support for any uAPI ABI version.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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