pub enum Error {
Dbus(Error),
ServiceInitialization(Box<dyn Error + Send + Sync>),
AgentRegistration(Box<dyn Error + Send + Sync>),
AdapterOperation {
operation: &'static str,
source: Error,
},
NoPrimaryAdapter {
operation: &'static str,
},
Discovery(Error),
NoCancellationToken,
NoPendingRequest {
request_type: &'static str,
},
NoResponder {
request_type: &'static str,
},
ResponderSend {
request_type: &'static str,
source: Box<dyn Error + Send + Sync>,
},
}Expand description
Bluetooth service errors.
Variants§
Dbus(Error)
D-Bus communication error.
ServiceInitialization(Box<dyn Error + Send + Sync>)
Service initialization failed.
AgentRegistration(Box<dyn Error + Send + Sync>)
Agent registration failed.
AdapterOperation
Adapter operation failed.
NoPrimaryAdapter
No primary adapter available for the requested operation.
Discovery(Error)
Object discovery failed.
NoCancellationToken
Monitoring requires a cancellation token but none was provided.
NoPendingRequest
Pairing request type mismatch.
NoResponder
Pairing responder unavailable.
ResponderSend
Pairing response channel send failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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