pub enum AccessoryError {
InvalidRequest,
Disconnected,
Transport,
Timeout,
CommandFailed(String),
}Expand description
Distinguish a framed worker error from transport loss. A worker error may still follow a dispatched USB command; neither permits automatic replay.
Variants§
Trait Implementations§
Source§impl Debug for AccessoryError
impl Debug for AccessoryError
Source§impl Display for AccessoryError
impl Display for AccessoryError
Source§impl Error for AccessoryError
impl Error for AccessoryError
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()
Auto Trait Implementations§
impl Freeze for AccessoryError
impl RefUnwindSafe for AccessoryError
impl Send for AccessoryError
impl Sync for AccessoryError
impl Unpin for AccessoryError
impl UnsafeUnpin for AccessoryError
impl UnwindSafe for AccessoryError
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