Enum bluez_async::BluetoothError
source · 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)>
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.