pub enum BluetoothEvent {
Found(BleDevice),
ScanStopped,
Connected {
device: String,
services: Vec<BleCharacteristic>,
},
Disconnected(String),
Value {
device: String,
characteristic: String,
data: Vec<u8>,
},
Written {
device: String,
characteristic: String,
},
Received {
device: String,
data: Vec<u8>,
},
Error(String),
}Expand description
O que o BluetoothService tem para contar.
Variants§
Found(BleDevice)
ScanStopped
A procura parou (pedido, erro ou o sistema parou).
Connected
Conectado (BLE, com as características; o clássico, sem).
Disconnected(String)
Value
Uma leitura pedida ou um aviso (notify/indicate).
Written
Received
Bytes que chegaram pelo canal serial (clássico).
Error(String)
Trait Implementations§
Source§impl Clone for BluetoothEvent
impl Clone for BluetoothEvent
Source§impl Debug for BluetoothEvent
impl Debug for BluetoothEvent
impl Eq for BluetoothEvent
Source§impl PartialEq for BluetoothEvent
impl PartialEq for BluetoothEvent
impl StructuralPartialEq for BluetoothEvent
Auto Trait Implementations§
impl Forget for BluetoothEvent
impl Freeze for BluetoothEvent
impl Move for BluetoothEvent
impl RefUnwindSafe for BluetoothEvent
impl Send for BluetoothEvent
impl Sync for BluetoothEvent
impl Unpin for BluetoothEvent
impl UnsafeUnpin for BluetoothEvent
impl UnwindSafe for BluetoothEvent
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