pub enum ClientError {
ProtocolError(Error),
HidError(String),
TimeError(String),
DeviceNotFound,
}Expand description
Errors returned from Ws6in1 client.
Variants§
ProtocolError(Error)
A Ws6in1 protocol error.
HidError(String)
An HID system error.
TimeError(String)
System time error.
DeviceNotFound
No matching device was found.
Trait Implementations§
Source§impl Clone for ClientError
impl Clone for ClientError
Source§fn clone(&self) -> ClientError
fn clone(&self) -> ClientError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
Available on crate feature std only.
impl Display for ClientError
Available on crate feature
std only.Source§impl From<ComponentRange> for ClientError
impl From<ComponentRange> for ClientError
Source§fn from(e: ComponentRange) -> Self
fn from(e: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<HidError> for ClientError
impl From<HidError> for ClientError
Source§impl From<IndeterminateOffset> for ClientError
impl From<IndeterminateOffset> for ClientError
Source§fn from(e: IndeterminateOffset) -> Self
fn from(e: IndeterminateOffset) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnwindSafe for ClientError
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