pub struct Session {
pub session: bluer::Session,
pub adapter: bluer::Adapter,
pub mac_changed: bool
}
impl Session {
pub async fn new() -> bluer::Result<Self> {
let session = bluer::Session::new().await?;
let adapter = session.default_adapter().await?;
Ok(Session { session, adapter, mac_changed: false })
}
}