[−][src]Struct dbus::ConnPath
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]
pub 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.
pub 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.
pub 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: 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<dyn RefArg>>>, Self::Err>
[src]
&self,
interface_name: &str
) -> Result<HashMap<String, Variant<Box<dyn 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<dyn RefArg>>>>>, Self::Err>
[src]
&self
) -> Result<HashMap<Path<'static>, HashMap<String, HashMap<String, Variant<Box<dyn RefArg>>>>>, Self::Err>
impl<'a, C: Deref<Target = Connection>> Peer for ConnPath<'a, C>
[src]
type Err = Error
fn ping(&self) -> Result<(), Self::Err>
[src]
fn get_machine_id(&self) -> Result<String, Self::Err>
[src]
impl<'a, C: Clone> Clone for ConnPath<'a, C>
[src]
fn clone(&self) -> ConnPath<'a, C>
[src]
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]
Auto Trait Implementations
impl<'a, C> Unpin for ConnPath<'a, C> where
C: Unpin,
C: Unpin,
impl<'a, C> Sync for ConnPath<'a, C> where
C: Sync,
C: Sync,
impl<'a, C> Send for ConnPath<'a, C> where
C: Send,
C: Send,
impl<'a, C> RefUnwindSafe for ConnPath<'a, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, C> UnwindSafe for ConnPath<'a, C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,