[][src]Struct zbus::fdo::PeerProxy

pub struct PeerProxy<'c>(_);

Proxy for the org.freedesktop.DBus.Peer interface.

Implementations

impl<'c> PeerProxy<'c>[src]

pub fn new(conn: &'c Connection) -> Result<Self>[src]

Creates a new proxy with the default service & path.

pub fn new_for(
    conn: &'c Connection,
    destination: &'c str,
    path: &'c str
) -> Result<Self>
[src]

Creates a new proxy for the given destination and path.

pub fn ping(&self) -> Result<()>[src]

On receipt, an application should do nothing other than reply as usual. It does not matter which object path a ping is sent to.

pub fn get_machine_id(&self) -> Result<String>[src]

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.

pub fn introspect(&self) -> Result<String>[src]

Auto Trait Implementations

impl<'c> !RefUnwindSafe for PeerProxy<'c>

impl<'c> !Send for PeerProxy<'c>

impl<'c> !Sync for PeerProxy<'c>

impl<'c> Unpin for PeerProxy<'c>

impl<'c> !UnwindSafe for PeerProxy<'c>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.