pub enum StreamDeckSocketError {
WebSocketError(Error),
BadMessage(Error),
}Expand description
Represents an error that occurred reading or writing the web socket.
Variants§
WebSocketError(Error)
The web socket reported an error.
BadMessage(Error)
The message could not be encoded/decoded.
Trait Implementations§
Source§impl Debug for StreamDeckSocketError
impl Debug for StreamDeckSocketError
Source§impl Display for StreamDeckSocketError
impl Display for StreamDeckSocketError
Source§impl Error for StreamDeckSocketError
impl Error for StreamDeckSocketError
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<Error> for StreamDeckSocketError
impl From<Error> for StreamDeckSocketError
Auto Trait Implementations§
impl Freeze for StreamDeckSocketError
impl !RefUnwindSafe for StreamDeckSocketError
impl Send for StreamDeckSocketError
impl Sync for StreamDeckSocketError
impl Unpin for StreamDeckSocketError
impl UnsafeUnpin for StreamDeckSocketError
impl !UnwindSafe for StreamDeckSocketError
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