pub struct MacvlanProxy<'p>(/* private fields */);
Implementations§
Source§impl MacvlanProxy<'_>
impl MacvlanProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<MacvlanProxy<'_>>
Source§impl<'p> MacvlanProxy<'p>
impl<'p> MacvlanProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<MacvlanProxy<'p>>
pub async fn new(conn: &Connection) -> Result<MacvlanProxy<'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_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>
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>
Create a stream for the Mode
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Sourcepub async fn no_promisc(&self) -> Result<bool>
pub async fn no_promisc(&self) -> Result<bool>
NoPromisc property
Sourcepub fn cached_no_promisc(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_no_promisc( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the NoPromisc
property, or None
if the property is not cached.
Sourcepub async fn receive_no_promisc_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_no_promisc_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the NoPromisc
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Sourcepub async fn parent(&self) -> Result<OwnedObjectPath>
pub async fn parent(&self) -> Result<OwnedObjectPath>
Parent property
Sourcepub fn cached_parent(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_parent( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Get the cached value of the Parent
property, or None
if the property is not cached.
Sourcepub async fn receive_parent_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_parent_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Create a stream for the Parent
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Sourcepub fn cached_tap(
&self,
) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
pub fn cached_tap( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>
Get the cached value of the Tap
property, or None
if the property is not cached.
Sourcepub async fn receive_tap_changed(
&self,
) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
pub async fn receive_tap_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>
Create a stream for the Tap
property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed
.
Trait Implementations§
Source§impl<'p> AsMut<Proxy<'p>> for MacvlanProxy<'p>
impl<'p> AsMut<Proxy<'p>> for MacvlanProxy<'p>
Source§impl<'p> AsRef<Proxy<'p>> for MacvlanProxy<'p>
impl<'p> AsRef<Proxy<'p>> for MacvlanProxy<'p>
Source§impl<'p> Clone for MacvlanProxy<'p>
impl<'p> Clone for MacvlanProxy<'p>
Source§fn clone(&self) -> MacvlanProxy<'p>
fn clone(&self) -> MacvlanProxy<'p>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more