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
sourceimpl Debug for StreamDeckError
impl Debug for StreamDeckError
sourceimpl From<HidError> for StreamDeckError
impl From<HidError> for StreamDeckError
sourceimpl From<ImageError> for StreamDeckError
impl From<ImageError> for StreamDeckError
sourcefn from(e: ImageError) -> Self
fn from(e: ImageError) -> Self
Converts to this type from the input type.
sourceimpl From<JoinError> for StreamDeckError
impl From<JoinError> for StreamDeckError
Auto Trait Implementations
impl !RefUnwindSafe for StreamDeckError
impl Send for StreamDeckError
impl Sync for StreamDeckError
impl Unpin for StreamDeckError
impl !UnwindSafe for StreamDeckError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more