#[non_exhaustive]pub enum ImplError {
Internal,
Disconnected,
OutOfMemory,
TimedOut,
Asleep,
PowerDown,
InvalidConfiguration,
CouldNotOpen,
PermissionDenied,
}
Expand description
A universal implementation specific error.
These error kinds can be used to signal implementation specific errors unrelated to the specific peripheral. This will be used for all sorts of connectivity problems, e.g. if an adapter to the peripheral is used or the target peripheral is connected to indirectly (like bus expanders) or an operating system is controlling the access and denying access.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Internal
Unspecified internal driver error
Disconnected
Connection lost, e.g. device adapter was unplugged
OutOfMemory
Ran out of memory while trying to allocate required buffers
TimedOut
Operation timed out, please retry
Asleep
Peripheral is sleeping or in standby
PowerDown
Peripheral is powered down
InvalidConfiguration
The peripheral cannot work with the specified settings
CouldNotOpen
Could not open connection to peripheral
PermissionDenied
No sufficient permissions to connect to peripheral