pub struct HsrProxy<'p>(/* private fields */);Implementations§
Source§impl HsrProxy<'_>
impl HsrProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<HsrProxy<'_>>
Source§impl<'p> HsrProxy<'p>
impl<'p> HsrProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<HsrProxy<'p>>
pub async fn new(conn: &Connection) -> Result<HsrProxy<'p>>
Creates a new proxy with the default service and path.
Sourcepub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
Sourcepub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
Sourcepub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
Sourcepub async fn multicast_spec(&self) -> Result<u8>
pub async fn multicast_spec(&self) -> Result<u8>
MulticastSpec property
Sourcepub fn cached_multicast_spec(
&self,
) -> Result<Option<<Result<u8> as ResultAdapter>::Ok>, <Result<u8> as ResultAdapter>::Err>
pub fn cached_multicast_spec( &self, ) -> Result<Option<<Result<u8> as ResultAdapter>::Ok>, <Result<u8> as ResultAdapter>::Err>
MulticastSpec property
Get the cached value of the MulticastSpec property, or None if the property is not cached.
Sourcepub async fn receive_multicast_spec_changed(
&self,
) -> PropertyStream<'p, <Result<u8> as ResultAdapter>::Ok>
pub async fn receive_multicast_spec_changed( &self, ) -> PropertyStream<'p, <Result<u8> as ResultAdapter>::Ok>
MulticastSpec property
Create a stream for the MulticastSpec property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn port1(&self) -> Result<OwnedObjectPath>
pub async fn port1(&self) -> Result<OwnedObjectPath>
Port1 property
Sourcepub fn cached_port1(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_port1( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Port1 property
Get the cached value of the Port1 property, or None if the property is not cached.
Sourcepub async fn receive_port1_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_port1_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Port1 property
Create a stream for the Port1 property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn port2(&self) -> Result<OwnedObjectPath>
pub async fn port2(&self) -> Result<OwnedObjectPath>
Port2 property
Sourcepub fn cached_port2(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_port2( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Port2 property
Get the cached value of the Port2 property, or None if the property is not cached.
Sourcepub async fn receive_port2_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_port2_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Port2 property
Create a stream for the Port2 property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_prp(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_prp( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Prp property
Get the cached value of the Prp property, or None if the property is not cached.
Sourcepub async fn receive_prp_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_prp_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Prp property
Create a stream for the Prp property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn supervision_address(&self) -> Result<String>
pub async fn supervision_address(&self) -> Result<String>
SupervisionAddress property
Sourcepub fn cached_supervision_address(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_supervision_address( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
SupervisionAddress property
Get the cached value of the SupervisionAddress property, or None if the property is not cached.
Sourcepub async fn receive_supervision_address_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_supervision_address_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
SupervisionAddress property
Create a stream for the SupervisionAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.