pub enum Error {
Io(String),
Att(AttError),
Timeout,
Disconnected,
Protocol(String),
}Expand description
Why a GATT operation failed.
Variants§
Io(String)
The socket could not be opened or connected.
Att(AttError)
The peer refused, with an ATT error code.
Timeout
No reply within the deadline.
Disconnected
The link dropped.
Protocol(String)
A reply that did not decode, or was not the one asked for.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move 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