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
dest: BusName<'a>
path: Path<'a>
timeout: i32
Timeout in milliseconds
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>
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>
i: &Interface,
m: &Member,
f: F)
-> Result<u32, Error>
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>
interfacename: &str,
propertyname: &str)
-> Result<Variant<Box<RefArg>>, Error>
fn get_all(&self,
interfacename: &str)
-> Result<HashMap<String, Variant<Box<RefArg>>>, Error>
interfacename: &str)
-> Result<HashMap<String, Variant<Box<RefArg>>>, Error>
fn set(&self,
interfacename: &str,
propertyname: &str,
value: Variant<Box<RefArg>>)
-> Result<(), Error>
interfacename: &str,
propertyname: &str,
value: Variant<Box<RefArg>>)
-> Result<(), Error>