pub struct VethProxy<'p>(/* private fields */);Implementations§
Source§impl VethProxy<'_>
impl VethProxy<'_>
pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<VethProxy<'_>>
Source§impl<'p> VethProxy<'p>
impl<'p> VethProxy<'p>
Sourcepub async fn new(conn: &Connection) -> Result<VethProxy<'p>>
pub async fn new(conn: &Connection) -> Result<VethProxy<'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 peer(&self) -> Result<OwnedObjectPath>
pub async fn peer(&self) -> Result<OwnedObjectPath>
Peer property
Sourcepub fn cached_peer(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_peer( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
Peer property
Get the cached value of the Peer property, or None if the property is not cached.
Sourcepub async fn receive_peer_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_peer_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
Peer property
Create a stream for the Peer property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.
Trait Implementations§
Source§impl<'a> Defaults for VethProxy<'a>
impl<'a> Defaults for VethProxy<'a>
const INTERFACE: &'static Option<InterfaceName<'static>>
const DESTINATION: &'static Option<BusName<'static>>
const PATH: &'static Option<ObjectPath<'static>>
Auto Trait Implementations§
impl<'p> Freeze for VethProxy<'p>
impl<'p> !RefUnwindSafe for VethProxy<'p>
impl<'p> Send for VethProxy<'p>
impl<'p> Sync for VethProxy<'p>
impl<'p> Unpin for VethProxy<'p>
impl<'p> !UnwindSafe for VethProxy<'p>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more