pub struct WireGuardProxy<'p>(/* private fields */);Implementations§
Source§impl WireGuardProxy<'_>
impl WireGuardProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<WireGuardProxy<'_>>
Source§impl<'p> WireGuardProxy<'p>
impl<'p> WireGuardProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<WireGuardProxy<'p>>
pub async fn new(conn: &Connection) -> Result<WireGuardProxy<'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 fn cached_fw_mark(
&self,
) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
pub fn cached_fw_mark( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>
FwMark property
Get the cached value of the FwMark property, or None if the property is not cached.
Sourcepub async fn receive_fw_mark_changed(
&self,
) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
pub async fn receive_fw_mark_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>
FwMark property
Create a stream for the FwMark property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn listen_port(&self) -> Result<u16>
pub async fn listen_port(&self) -> Result<u16>
ListenPort property
Sourcepub fn cached_listen_port(
&self,
) -> Result<Option<<Result<u16> as ResultAdapter>::Ok>, <Result<u16> as ResultAdapter>::Err>
pub fn cached_listen_port( &self, ) -> Result<Option<<Result<u16> as ResultAdapter>::Ok>, <Result<u16> as ResultAdapter>::Err>
ListenPort property
Get the cached value of the ListenPort property, or None if the property is not cached.
Sourcepub async fn receive_listen_port_changed(
&self,
) -> PropertyStream<'p, <Result<u16> as ResultAdapter>::Ok>
pub async fn receive_listen_port_changed( &self, ) -> PropertyStream<'p, <Result<u16> as ResultAdapter>::Ok>
ListenPort property
Create a stream for the ListenPort property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn public_key(&self) -> Result<Vec<u8>>
pub async fn public_key(&self) -> Result<Vec<u8>>
PublicKey property
Sourcepub fn cached_public_key(
&self,
) -> Result<Option<<Result<Vec<u8>> as ResultAdapter>::Ok>, <Result<Vec<u8>> as ResultAdapter>::Err>
pub fn cached_public_key( &self, ) -> Result<Option<<Result<Vec<u8>> as ResultAdapter>::Ok>, <Result<Vec<u8>> as ResultAdapter>::Err>
PublicKey property
Get the cached value of the PublicKey property, or None if the property is not cached.
Sourcepub async fn receive_public_key_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<u8>> as ResultAdapter>::Ok>
pub async fn receive_public_key_changed( &self, ) -> PropertyStream<'p, <Result<Vec<u8>> as ResultAdapter>::Ok>
PublicKey property
Create a stream for the PublicKey property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for WireGuardProxy<'p>
impl<'p> AsMut<Proxy<'p>> for WireGuardProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for WireGuardProxy<'p>
impl<'p> AsRef<Proxy<'p>> for WireGuardProxy<'p>
Source§impl<'p> Clone for WireGuardProxy<'p>
impl<'p> Clone for WireGuardProxy<'p>
Source§fn clone(&self) -> WireGuardProxy<'p>
fn clone(&self) -> WireGuardProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more