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
Fields
uuid: Uuid
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
sourceimpl Debug for BluetoothError
impl Debug for BluetoothError
sourceimpl Display for BluetoothError
impl Display for BluetoothError
sourceimpl Error for BluetoothError
impl Error for BluetoothError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for BluetoothError
impl From<Error> for BluetoothError
sourceimpl From<Error> for BluetoothError
impl From<Error> for BluetoothError
sourceimpl From<Error> for BluetoothError
impl From<Error> for BluetoothError
sourceimpl From<ParseMacAddressError> for BluetoothError
impl From<ParseMacAddressError> for BluetoothError
sourcefn from(source: ParseMacAddressError) -> Self
fn from(source: ParseMacAddressError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseModaliasError> for BluetoothError
impl From<ParseModaliasError> for BluetoothError
sourcefn from(source: ParseModaliasError) -> Self
fn from(source: ParseModaliasError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for BluetoothError
impl Send for BluetoothError
impl Sync for BluetoothError
impl Unpin for BluetoothError
impl !UnwindSafe for BluetoothError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more