pub enum BluetoothError {
NoBluetoothAdapters,
DbusError(Error),
XmlParseError(Error),
UuidNotFound {
uuid: Uuid,
},
UuidParseError(Error),
FlagParseError(String),
AddressTypeParseError(String),
RequiredPropertyMissing(&'static str),
ServiceDiscoveryTimedOut,
MacAddressParseError(ParseMacAddressError),
ModaliasParseError(ParseModaliasError),
}
Expand description
An error carrying out a Bluetooth operation.
Variants§
NoBluetoothAdapters
No Bluetooth adapters were found on the system.
DbusError(Error)
There was an error talking to the BlueZ daemon over D-Bus.
XmlParseError(Error)
Error parsing XML for introspection.
UuidNotFound
No service or characteristic was found for some UUID.
UuidParseError(Error)
Error parsing a UUID from a string.
FlagParseError(String)
Error parsing a characteristic flag from a string.
AddressTypeParseError(String)
Error parsing an AddressType
from a string.
RequiredPropertyMissing(&'static str)
A required property of some device or other object was not found.
ServiceDiscoveryTimedOut
Service discovery didn’t happen within the time limit.
MacAddressParseError(ParseMacAddressError)
Error parsing a MacAddress
from a string.
ModaliasParseError(ParseModaliasError)
Error parsing a Modalias
from a string.
Trait Implementations§
Source§impl Debug for BluetoothError
impl Debug for BluetoothError
Source§impl Display for BluetoothError
impl Display for BluetoothError
Source§impl Error for BluetoothError
impl Error for BluetoothError
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()
Source§impl From<Error> for BluetoothError
impl From<Error> for BluetoothError
Source§impl From<Error> for BluetoothError
impl From<Error> for BluetoothError
Source§impl From<Error> for BluetoothError
impl From<Error> for BluetoothError
Source§impl From<ParseMacAddressError> for BluetoothError
impl From<ParseMacAddressError> for BluetoothError
Source§fn from(source: ParseMacAddressError) -> Self
fn from(source: ParseMacAddressError) -> Self
Converts to this type from the input type.
Source§impl From<ParseModaliasError> for BluetoothError
impl From<ParseModaliasError> for BluetoothError
Source§fn from(source: ParseModaliasError) -> Self
fn from(source: ParseModaliasError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BluetoothError
impl !RefUnwindSafe for BluetoothError
impl Send for BluetoothError
impl Sync for BluetoothError
impl Unpin for BluetoothError
impl !UnwindSafe for BluetoothError
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