#[non_exhaustive]pub enum ClientError {
Failed,
UsbDeviceRejected,
UsbDeviceLost,
AuthNeedsPassword,
AuthNeedsUsername,
AuthNeedsPasswordAndUsername,
UsbService,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Failed
UsbDeviceRejected
UsbDeviceLost
AuthNeedsPassword
AuthNeedsUsername
AuthNeedsPasswordAndUsername
UsbService
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientError
Source§impl Debug for ClientError
impl Debug for ClientError
impl Eq for ClientError
Source§impl ErrorDomain for ClientError
impl ErrorDomain for ClientError
Source§impl Hash for ClientError
impl Hash for ClientError
Source§impl Ord for ClientError
impl Ord for ClientError
Source§fn cmp(&self, other: &ClientError) -> Ordering
fn cmp(&self, other: &ClientError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClientError
impl PartialEq for ClientError
Source§fn eq(&self, other: &ClientError) -> bool
fn eq(&self, other: &ClientError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ClientError
impl PartialOrd for ClientError
impl StructuralPartialEq for ClientError
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin 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