#[non_exhaustive]#[repr(u8)]pub enum BleDeviceType {
ConnectedGps = 0,
HeartRate = 1,
BikePower = 2,
BikeSpeedCadence = 3,
BikeSpeed = 4,
BikeCadence = 5,
Footpod = 6,
BikeTrainer = 7,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConnectedGps = 0
HeartRate = 1
BikePower = 2
BikeSpeedCadence = 3
BikeSpeed = 4
BikeCadence = 5
Footpod = 6
BikeTrainer = 7
Implementations§
Source§impl BleDeviceType
impl BleDeviceType
Trait Implementations§
Source§impl Clone for BleDeviceType
impl Clone for BleDeviceType
Source§fn clone(&self) -> BleDeviceType
fn clone(&self) -> BleDeviceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BleDeviceType
impl Debug for BleDeviceType
Source§impl Hash for BleDeviceType
impl Hash for BleDeviceType
Source§impl PartialEq for BleDeviceType
impl PartialEq for BleDeviceType
Source§fn eq(&self, other: &BleDeviceType) -> bool
fn eq(&self, other: &BleDeviceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BleDeviceType
impl Eq for BleDeviceType
impl StructuralPartialEq for BleDeviceType
Auto Trait Implementations§
impl Freeze for BleDeviceType
impl RefUnwindSafe for BleDeviceType
impl Send for BleDeviceType
impl Sync for BleDeviceType
impl Unpin for BleDeviceType
impl UnsafeUnpin for BleDeviceType
impl UnwindSafe for BleDeviceType
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