[][src]Struct dbus::ConnPath

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]

pub fn method_call_with_args<F: FnOnce(&mut Message)>(
    &self,
    i: &Interface,
    m: &Member,
    f: F
) -> Result<Message, Error>
[src]

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]

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]

type Err = Error

impl<'a, C: Deref<Target = Connection>> Properties for ConnPath<'a, C>[src]

type Err = Error

impl<'a, C: Deref<Target = Connection>> ObjectManager for ConnPath<'a, C>[src]

type Err = Error

impl<'a, C: Deref<Target = Connection>> Peer for ConnPath<'a, C>[src]

type Err = Error

impl<'a, C: Clone> Clone for 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

impl<'a, C> Sync for ConnPath<'a, C> where
    C: Sync

impl<'a, C> Send for ConnPath<'a, C> where
    C: Send

impl<'a, C> RefUnwindSafe for ConnPath<'a, C> where
    C: RefUnwindSafe

impl<'a, C> UnwindSafe for ConnPath<'a, C> where
    C: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]