Struct dbus::ConnPath
[−]
[src]
pub struct ConnPath<'a, C> { pub conn: C, pub dest: BusName<'a>, pub path: Path<'a>, pub timeout: i32, }
A convenience struct that wraps connection, destination and path.
Useful if you want to make many method calls to the same destination path.
Fields
conn: C
Some way to access the connection, e g a &Connection or Rc
dest: BusName<'a>
Destination, i e what D-Bus service you're communicating with
path: Path<'a>
Object path on the destination
timeout: i32
Timeout in milliseconds for blocking method calls
Methods
impl<'a, C: Deref<Target = Connection>> ConnPath<'a, C>
[src]
fn method_call_with_args<F: FnOnce(&mut Message)>(
&self,
i: &Interface,
m: &Member,
f: F
) -> Result<Message, Error>
&self,
i: &Interface,
m: &Member,
f: F
) -> Result<Message, Error>
Make a D-Bus method call, where you can append arguments inside the closure.
fn signal_with_args<F: FnOnce(&mut Message)>(
&self,
i: &Interface,
m: &Member,
f: F
) -> Result<u32, Error>
&self,
i: &Interface,
m: &Member,
f: F
) -> Result<u32, Error>
Emit a D-Bus signal, where you can append arguments inside the closure.
Trait Implementations
impl<'a, C: Clone> Clone for ConnPath<'a, C>
[src]
fn clone(&self) -> ConnPath<'a, C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a, C: Debug> Debug for ConnPath<'a, C>
[src]
impl<'a, C: Deref<Target = Connection>> OrgFreedesktopDBusPeer for ConnPath<'a, C>
[src]
impl<'a, C: Deref<Target = Connection>> OrgFreedesktopDBusIntrospectable for ConnPath<'a, C>
[src]
fn introspect(&self) -> Result<String, Error>
impl<'a, C: Deref<Target = Connection>> OrgFreedesktopDBusProperties for ConnPath<'a, C>
[src]
fn get(
&self,
interfacename: &str,
propertyname: &str
) -> Result<Variant<Box<RefArg>>, Error>
&self,
interfacename: &str,
propertyname: &str
) -> Result<Variant<Box<RefArg>>, Error>
fn get_all(
&self,
interfacename: &str
) -> Result<HashMap<String, Variant<Box<RefArg>>>, Error>
&self,
interfacename: &str
) -> Result<HashMap<String, Variant<Box<RefArg>>>, Error>
fn set(
&self,
interfacename: &str,
propertyname: &str,
value: Variant<Box<RefArg>>
) -> Result<(), Error>
&self,
interfacename: &str,
propertyname: &str,
value: Variant<Box<RefArg>>
) -> Result<(), Error>