feat: zbus 4.2.1 update

This commit is contained in:
Ashley Wulber 2024-05-16 15:24:53 -04:00 committed by GitHub
parent ce9c789fe6
commit f05789c4ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 390 additions and 389 deletions

View file

@ -20,7 +20,7 @@ impl<'a> WirelessDevice<'a> {
let access_points = self.0.get_access_points().await?;
let mut out = Vec::with_capacity(access_points.len());
for access_point in access_points {
let access_point = AccessPointProxy::builder(self.0.connection())
let access_point = AccessPointProxy::builder(self.0.inner().connection())
.path(access_point)?
.build()
.await?;
@ -33,7 +33,7 @@ impl<'a> WirelessDevice<'a> {
let access_points = self.0.get_all_access_points().await?;
let mut out = Vec::with_capacity(access_points.len());
for access_point in access_points {
let access_point = AccessPointProxy::builder(self.0.connection())
let access_point = AccessPointProxy::builder(self.0.inner().connection())
.path(access_point)?
.build()
.await?;
@ -46,7 +46,7 @@ impl<'a> WirelessDevice<'a> {
let access_points = self.0.access_points().await?;
let mut out = Vec::with_capacity(access_points.len());
for access_point in access_points {
let access_point = AccessPointProxy::builder(self.0.connection())
let access_point = AccessPointProxy::builder(self.0.inner().connection())
.path(access_point)?
.build()
.await?;
@ -56,7 +56,7 @@ impl<'a> WirelessDevice<'a> {
}
pub async fn active_access_point(&self) -> Result<AccessPoint<'a>> {
AccessPointProxy::builder(self.0.connection())
AccessPointProxy::builder(self.0.inner().connection())
.path(self.0.active_access_point().await?)?
.build()
.await
@ -64,8 +64,8 @@ impl<'a> WirelessDevice<'a> {
}
pub async fn upcast(&'a self) -> Result<Device<'a>> {
DeviceProxy::builder(self.0.connection())
.path(self.0.path())?
DeviceProxy::builder(self.0.inner().connection())
.path(self.0.inner().path())?
.build()
.await
.map(Device::from)