#[non_exhaustive]
pub enum ErrorKind {
Show 26 variants
AlreadyConnected,
AlreadyExists,
AuthenticationCanceled,
AuthenticationFailed,
AuthenticationRejected,
AuthenticationTimeout,
ConnectionAttemptFailed,
DoesNotExist,
Failed,
InProgress,
InvalidArguments,
InvalidLength,
NotAvailable,
NotAuthorized,
NotReady,
NotSupported,
NotPermitted,
InvalidOffset,
InvalidAddress(String),
InvalidName(String),
ServicesUnresolved,
NotRegistered,
NotificationSessionStopped,
IndicationUnconfirmed,
NotFound,
Internal(InternalErrorKind),
}
bluetoothd
only.Expand description
Bluetooth error kind.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AlreadyConnected
Bluetooth device already connected
AlreadyExists
Bluetooth device already exists
AuthenticationCanceled
Bluetooth authentication canceled
AuthenticationFailed
Bluetooth authentication failed
AuthenticationRejected
Bluetooth authentication rejected
AuthenticationTimeout
Bluetooth authentication timeout
ConnectionAttemptFailed
Bluetooth connection attempt failed
DoesNotExist
Bluetooth device does not exist
Failed
Bluetooth operation failed
InProgress
Bluetooth operation in progress
InvalidArguments
Invalid arguments for Bluetooth operation
InvalidLength
the data provided is of invalid length
NotAvailable
Bluetooth operation not available
NotAuthorized
Bluetooth operation not authorized
NotReady
Bluetooth device not ready
NotSupported
Bluetooth operation not supported
NotPermitted
Bluetooth operation not permitted
InvalidOffset
invalid offset for Bluetooth GATT property
InvalidAddress(String)
invalid Bluetooth address: {0}
InvalidName(String)
invalid Bluetooth adapter name: {0}
ServicesUnresolved
GATT services have not been resolved for that Bluetooth device
NotRegistered
Bluetooth application is not registered
NotificationSessionStopped
the receiving Bluetooth device has stopped the notification session
IndicationUnconfirmed
the indication was not confirmed by the receiving device
NotFound
the target object was either not present or removed
Internal(InternalErrorKind)
internal error: {0}
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ErrorKind
impl<'de> Deserialize<'de> for ErrorKind
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl Ord for ErrorKind
impl Ord for ErrorKind
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialOrd<ErrorKind> for ErrorKind
impl PartialOrd<ErrorKind> for ErrorKind
sourcefn partial_cmp(&self, other: &ErrorKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ErrorKind) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more