#[repr(i32)]pub enum ReturnCode {
Ok = 0,
ErrGeneric = -1,
ErrNotConnected = -5,
ErrTransfer = -10,
ErrParameter = -20,
ErrNotSupported = -30,
ErrCannotClaimUsb = -100,
ErrCannotConnect = -101,
}Expand description
Return codes matching the original library
Variants§
Ok = 0
ErrGeneric = -1
ErrNotConnected = -5
ErrTransfer = -10
ErrParameter = -20
ErrNotSupported = -30
ErrCannotClaimUsb = -100
ErrCannotConnect = -101
Trait Implementations§
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§fn clone(&self) -> ReturnCode
fn clone(&self) -> ReturnCode
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 ReturnCode
impl Debug for ReturnCode
Source§impl From<PoKeysError> for ReturnCode
impl From<PoKeysError> for ReturnCode
Source§fn from(error: PoKeysError) -> Self
fn from(error: PoKeysError) -> Self
Converts to this type from the input type.
Source§impl From<ReturnCode> for PoKeysError
impl From<ReturnCode> for PoKeysError
Source§fn from(code: ReturnCode) -> Self
fn from(code: ReturnCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
impl Copy for ReturnCode
impl Eq for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnsafeUnpin for ReturnCode
impl UnwindSafe for ReturnCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.