pub enum StreamDeckError {
HidError(HidError),
Utf8Error(Utf8Error),
ImageError(ImageError),
JoinError(JoinError),
PoisonError,
NoScreen,
InvalidKeyIndex,
InvalidTouchPointIndex,
UnrecognizedPID,
UnsupportedOperation,
BadData,
}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
PoisonError
Reader mutex was poisoned
NoScreen
There’s literally nowhere to write the image
InvalidKeyIndex
Key index is invalid
InvalidTouchPointIndex
Key index is invalid
UnrecognizedPID
Unrecognized Product ID
UnsupportedOperation
The device doesn’t support doing that
BadData
Stream Deck sent unexpected data
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)>
Returns 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.
Source§impl From<JoinError> for StreamDeckError
impl From<JoinError> for StreamDeckError
Source§impl<T> From<PoisonError<T>> for StreamDeckError
impl<T> From<PoisonError<T>> for StreamDeckError
Source§fn from(_value: PoisonError<T>) -> Self
fn from(_value: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamDeckError
impl !RefUnwindSafe for StreamDeckError
impl Send for StreamDeckError
impl Sync for StreamDeckError
impl Unpin for StreamDeckError
impl !UnwindSafe for StreamDeckError
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