pub enum GpioOpenError {
OpenGpioFileFailed(Error),
CreateMmapError(Error),
}
Expand description
Any type of error that happens when attempting to first access GPIO via mmap
Variants§
OpenGpioFileFailed(Error)
In order to function, the file /dev/gpiomem
needs to be opened. This error means that that did
not work. The most likely reason is that the program is not run as root / has access to the file
or that the program has been run on a device that is not a raspberry pi.
CreateMmapError(Error)
An Error happened in trying to map the already opened File to memory. See contained io::Error for more information.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpioOpenError
impl !RefUnwindSafe for GpioOpenError
impl Send for GpioOpenError
impl Sync for GpioOpenError
impl Unpin for GpioOpenError
impl !UnwindSafe for GpioOpenError
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