Trait RingBackend
Source pub trait RingBackend: Send + Sync {
// Required methods
fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subscribe_to_gestures<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Receiver<Gesture>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_haptic<'life0, 'async_trait>(
&'life0 self,
pattern: HapticPattern,
intensity: f32,
duration_ms: u32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DeviceStatus> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}