pub struct TunProxy<'p>(/* private fields */);Implementations§
Source§impl TunProxy<'_>
impl TunProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<TunProxy<'_>>
Source§impl<'p> TunProxy<'p>
impl<'p> TunProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<TunProxy<'p>>
pub async fn new(conn: &Connection) -> Result<TunProxy<'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_group(
&self,
) -> Result<Option<<Result<i64> as ResultAdapter>::Ok>, <Result<i64> as ResultAdapter>::Err>
pub fn cached_group( &self, ) -> Result<Option<<Result<i64> as ResultAdapter>::Ok>, <Result<i64> as ResultAdapter>::Err>
Group property
Get the cached value of the Group property, or None if the property is not cached.
Sourcepub async fn receive_group_changed(
&self,
) -> PropertyStream<'p, <Result<i64> as ResultAdapter>::Ok>
pub async fn receive_group_changed( &self, ) -> PropertyStream<'p, <Result<i64> as ResultAdapter>::Ok>
Group property
Create a stream for the Group property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn hw_address(&self) -> Result<String>
pub async fn hw_address(&self) -> Result<String>
HwAddress property
Sourcepub fn cached_hw_address(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_hw_address( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
HwAddress property
Get the cached value of the HwAddress property, or None if the property is not cached.
Sourcepub async fn receive_hw_address_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_hw_address_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
HwAddress property
Create a stream for the HwAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_mode(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_mode( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
Mode property
Get the cached value of the Mode property, or None if the property is not cached.
Sourcepub async fn receive_mode_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_mode_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
Mode property
Create a stream for the Mode property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub async fn multi_queue(&self) -> Result<bool>
pub async fn multi_queue(&self) -> Result<bool>
MultiQueue property
Sourcepub fn cached_multi_queue(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_multi_queue( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
MultiQueue property
Get the cached value of the MultiQueue property, or None if the property is not cached.
Sourcepub async fn receive_multi_queue_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_multi_queue_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
MultiQueue property
Create a stream for the MultiQueue property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_no_pi(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_no_pi( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
NoPi property
Get the cached value of the NoPi property, or None if the property is not cached.
Sourcepub async fn receive_no_pi_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_no_pi_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
NoPi property
Create a stream for the NoPi property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_owner(
&self,
) -> Result<Option<<Result<i64> as ResultAdapter>::Ok>, <Result<i64> as ResultAdapter>::Err>
pub fn cached_owner( &self, ) -> Result<Option<<Result<i64> as ResultAdapter>::Ok>, <Result<i64> as ResultAdapter>::Err>
Owner property
Get the cached value of the Owner property, or None if the property is not cached.
Sourcepub async fn receive_owner_changed(
&self,
) -> PropertyStream<'p, <Result<i64> as ResultAdapter>::Ok>
pub async fn receive_owner_changed( &self, ) -> PropertyStream<'p, <Result<i64> as ResultAdapter>::Ok>
Owner property
Create a stream for the Owner property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Sourcepub fn cached_vnet_hdr(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_vnet_hdr( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
VnetHdr property
Get the cached value of the VnetHdr property, or None if the property is not cached.
Sourcepub async fn receive_vnet_hdr_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_vnet_hdr_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
VnetHdr property
Create a stream for the VnetHdr property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.