-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlib.rs
26 lines (21 loc) · 780 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use crate::anc::AncMode;
pub mod anc;
pub mod connect;
pub mod nothing_ear_2;
pub trait Nothing {
fn get_address(&self) -> impl std::future::Future<Output = String> + Send;
fn get_firmware_version(&self) -> impl std::future::Future<Output = String> + Send;
fn get_serial_number(&self) -> impl std::future::Future<Output = String> + Send;
fn set_anc_mode(
&self,
mode: AncMode,
) -> impl std::future::Future<Output = Result<(), bluer::Error>> + Send;
fn set_low_latency_mode(
&self,
mode: bool,
) -> impl std::future::Future<Output = Result<(), bluer::Error>> + Send;
fn set_in_ear_detection_mode(
&self,
mode: bool,
) -> impl std::future::Future<Output = Result<(), bluer::Error>> + Send;
}