pub struct PeerProxy<'p>(/* private fields */);
Expand description
Proxy for the org.freedesktop.DBus.Peer
interface.
Implementations§
Source§impl<'p> PeerProxy<'p>
impl<'p> PeerProxy<'p>
Sourcepub async fn new<D, P>(
conn: &Connection,
destination: D,
path: P,
) -> Result<PeerProxy<'p>>
pub async fn new<D, P>( conn: &Connection, destination: D, path: P, ) -> Result<PeerProxy<'p>>
Creates a new proxy with the given service destination 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 ping(&self) -> Result<()>
pub async fn ping(&self) -> Result<()>
On receipt, an application should do nothing other than reply as usual. It does not matter which object path a ping is sent to.
Sourcepub async fn get_machine_id(&self) -> Result<String>
pub async fn get_machine_id(&self) -> Result<String>
An application should reply the containing a hex-encoded UUID representing the identity of the machine the process is running on. This UUID must be the same for all processes on a single system at least until that system next reboots. It should be the same across reboots if possible, but this is not always possible to implement and is not guaranteed. It does not matter which object path a GetMachineId is sent to.