pub struct ConnectionProxy<'p>(/* private fields */);Implementations§
Source§impl ConnectionProxy<'_>
impl ConnectionProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<ConnectionProxy<'_>>
Source§impl<'p> ConnectionProxy<'p>
impl<'p> ConnectionProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<ConnectionProxy<'p>>
pub async fn new(conn: &Connection) -> Result<ConnectionProxy<'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 receive_vpn_vpn_state_changed(
&self,
) -> Result<vpn_state_changedStream>
pub async fn receive_vpn_vpn_state_changed( &self, ) -> Result<vpn_state_changedStream>
Create a stream that receives vpn_state_changed signals.
This a convenient wrapper around zbus::Proxy::receive_signal.
VpnStateChanged signal
Sourcepub async fn receive_vpn_vpn_state_changed_with_args(
&self,
args: &[(u8, &str)],
) -> Result<vpn_state_changedStream>
pub async fn receive_vpn_vpn_state_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<vpn_state_changedStream>
Create a stream that receives vpn_state_changed signals.
This a convenient wrapper around zbus::Proxy::receive_signal_with_args.
VpnStateChanged signal
Banner property
Banner property
Get the cached value of the Banner property, or None if the property is not cached.
Banner property
Create a stream for the Banner property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_vpn_state(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_vpn_state( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
VpnState property
Get the cached value of the VpnState property, or None if the property is not cached.
Sourcepub async fn receive_vpn_state_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_vpn_state_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
VpnState property
Create a stream for the VpnState property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for ConnectionProxy<'p>
impl<'p> AsMut<Proxy<'p>> for ConnectionProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for ConnectionProxy<'p>
impl<'p> AsRef<Proxy<'p>> for ConnectionProxy<'p>
Source§impl<'p> Clone for ConnectionProxy<'p>
impl<'p> Clone for ConnectionProxy<'p>
Source§fn clone(&self) -> ConnectionProxy<'p>
fn clone(&self) -> ConnectionProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more