Struct rusty_network_manager::HsrProxy
source · 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Create a stream for the SupervisionAddress
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.