Enum blurz::bluetooth_event::BluetoothEvent
source · pub enum BluetoothEvent {
Powered {
object_path: String,
powered: bool,
},
Discovering {
object_path: String,
discovering: bool,
},
Connected {
object_path: String,
connected: bool,
},
ServicesResolved {
object_path: String,
services_resolved: bool,
},
Value {
object_path: String,
value: Box<[u8]>,
},
RSSI {
object_path: String,
rssi: i16,
},
None,
}
Variants
Implementations
sourceimpl BluetoothEvent
impl BluetoothEvent
pub fn from(conn_msg: Message) -> Option<BluetoothEvent>
Trait Implementations
sourceimpl Clone for BluetoothEvent
impl Clone for BluetoothEvent
sourcefn clone(&self) -> BluetoothEvent
fn clone(&self) -> BluetoothEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BluetoothEvent
impl Send for BluetoothEvent
impl Sync for BluetoothEvent
impl Unpin for BluetoothEvent
impl UnwindSafe for BluetoothEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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