[−][src]Struct zbus::fdo::PeerProxy
Proxy for the org.freedesktop.DBus.Peer interface.
Implementations
impl<'c> PeerProxy<'c>[src]
pub fn new(conn: &Connection) -> Result<Self>[src]
Creates a new proxy with the default service & path.
pub fn new_for(
conn: &Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>[src]
conn: &Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
Creates a new proxy for the given destination and path.
pub fn new_for_owned(
conn: Connection,
destination: String,
path: String
) -> Result<Self>[src]
conn: Connection,
destination: String,
path: String
) -> Result<Self>
Same as new_for but takes ownership of the passed arguments.
pub fn into_inner(self) -> Proxy<'c>[src]
Consumes self, returning the underlying zbus::Proxy.
pub fn inner(&self) -> &Proxy<'_>[src]
The reference to the underlying zbus::Proxy.
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]
Methods from Deref<Target = Proxy<'c>>
pub fn introspect(&self) -> Result<String>[src]
Introspect the associated object, and return the XML description.
See the xml module for parsing the result.
pub fn get_property<T>(&self, property_name: &str) -> Result<T> where
T: TryFrom<OwnedValue>, [src]
T: TryFrom<OwnedValue>,
Get the property property_name.
Effectively, call the Get method of the org.freedesktop.DBus.Properties interface.
pub fn set_property<'t, T: 't>(
&self,
property_name: &str,
value: T
) -> Result<()> where
T: Into<Value<'t>>, [src]
&self,
property_name: &str,
value: T
) -> Result<()> where
T: Into<Value<'t>>,
Set the property property_name.
Effectively, call the Set method of the org.freedesktop.DBus.Properties interface.
pub fn call_method<B>(&self, method_name: &str, body: &B) -> Result<Message> where
B: Serialize + Type, [src]
B: Serialize + Type,
Call a method and return the reply.
Typically, you would want to use call method instead. Use this method if you need to
deserialize the reply message manually (this way, you can avoid avoid the memory
allocation/copying, by deserializing the reply to an unowned type).
pub fn call<B, R>(&self, method_name: &str, body: &B) -> Result<R> where
B: Serialize + Type,
R: DeserializeOwned + Type, [src]
B: Serialize + Type,
R: DeserializeOwned + Type,
Call a method and return the reply body.
Use call_method instead if you need to deserialize the reply manually/separately.
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,