pub enum StreamDeckError {
HidError(HidError),
Utf8Error(Utf8Error),
ImageError(ImageError),
JoinError(JoinError),
NoScreen,
InvalidKeyIndex,
UnrecognizedPID,
}Expand description
Errors that can occur while working with Stream Decks
Variants§
HidError(HidError)
HidApi error
Utf8Error(Utf8Error)
Failed to convert bytes into string
ImageError(ImageError)
Failed to encode image
JoinError(JoinError)
Available on crate feature
async only.Tokio join error
NoScreen
There’s literally nowhere to write the image
InvalidKeyIndex
Key index is invalid
UnrecognizedPID
Unrecognized Product ID
Trait Implementations§
source§impl Debug for StreamDeckError
impl Debug for StreamDeckError
source§impl Display for StreamDeckError
impl Display for StreamDeckError
source§impl Error for StreamDeckError
impl Error for StreamDeckError
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
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 From<HidError> for StreamDeckError
impl From<HidError> for StreamDeckError
source§impl From<ImageError> for StreamDeckError
impl From<ImageError> for StreamDeckError
source§fn from(e: ImageError) -> Self
fn from(e: ImageError) -> Self
Converts to this type from the input type.