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>
[src]
&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>
[src]
&self,
i: &Interface,
m: &Member,
f: F
) -> Result<u32, Error>
Emit a D-Bus signal, where you can append arguments inside the closure.
fn emit<S: SignalArgs>(&self, signal: &S) -> Result<u32, Error>
[src]
Emit a D-Bus signal, where the arguments are in a struct.
Trait Implementations
impl<'a, C: Clone> Clone for ConnPath<'a, C>
[src]
fn clone(&self) -> ConnPath<'a, C>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, C: Debug> Debug for ConnPath<'a, C>
[src]
impl<'a, C: Deref<Target = Connection>> Introspectable for ConnPath<'a, C>
[src]
impl<'a, C: Deref<Target = Connection>> Properties for ConnPath<'a, C>
[src]
type Err = Error
fn get<R0: for<'b> Get<'b>>(
&self,
interface_name: &str,
property_name: &str
) -> Result<R0, Self::Err>
[src]
&self,
interface_name: &str,
property_name: &str
) -> Result<R0, Self::Err>
fn get_all(
&self,
interface_name: &str
) -> Result<HashMap<String, Variant<Box<RefArg>>>, Self::Err>
[src]
&self,
interface_name: &str
) -> Result<HashMap<String, Variant<Box<RefArg>>>, Self::Err>
fn set<I2: Arg + Append>(
&self,
interface_name: &str,
property_name: &str,
value: I2
) -> Result<(), Self::Err>
[src]
&self,
interface_name: &str,
property_name: &str,
value: I2
) -> Result<(), Self::Err>
impl<'a, C: Deref<Target = Connection>> ObjectManager for ConnPath<'a, C>
[src]
type Err = Error
fn get_managed_objects(
&self
) -> Result<HashMap<Path<'static>, HashMap<String, HashMap<String, Variant<Box<RefArg>>>>>, Self::Err>
[src]
&self
) -> Result<HashMap<Path<'static>, HashMap<String, HashMap<String, Variant<Box<RefArg>>>>>, Self::Err>