pub struct NonBluetoothDevice {
pub name: String,
/* private fields */
}Expand description
A bogus non-Bluetooth device, which only prints debug information at the moment.
Fields§
§name: StringThe name of the device
Trait Implementations§
Source§impl Clone for NonBluetoothDevice
impl Clone for NonBluetoothDevice
Source§impl Debug for NonBluetoothDevice
impl Debug for NonBluetoothDevice
Source§impl Equipment for NonBluetoothDevice
impl Equipment for NonBluetoothDevice
Source§fn new<'life0, 'async_trait>(
max_level: i16,
_: &'life0 mut Receiver<()>,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new<'life0, 'async_trait>(
max_level: i16,
_: &'life0 mut Receiver<()>,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new instance of the equipment.
max_level is used to prevent the equipment from being set to a level higher than its capabilities
`shutdown_rx`` is used in the discovery/scanning phase of connecting to the equipment, allowing it to be shut down gracefully Read moreSource§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect to the equipment, discover its capabilities for reading and writing Read more
Source§fn disconnect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnect from the equipment, disconnecting from any subscriptions, and sending any stop signals if required Read more
Source§fn set_target_cadence<'life0, 'async_trait>(
&'life0 self,
rpm: i16,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_target_cadence<'life0, 'async_trait>(
&'life0 self,
rpm: i16,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set the equipment target cadence Read more
Auto Trait Implementations§
impl Freeze for NonBluetoothDevice
impl RefUnwindSafe for NonBluetoothDevice
impl Send for NonBluetoothDevice
impl Sync for NonBluetoothDevice
impl Unpin for NonBluetoothDevice
impl UnsafeUnpin for NonBluetoothDevice
impl UnwindSafe for NonBluetoothDevice
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