[−][src]Struct dbus::nonblock::Proxy
A struct that wraps a connection, destination and path.
A D-Bus "Proxy" is a client-side object that corresponds to a remote object on the server side. Calling methods on the proxy object calls methods on the remote object. Read more in the D-Bus tutorial
Fields
destination: BusName<'a>
Destination, i e what D-Bus service you're communicating with
path: Path<'a>
Object path on the destination
connection: C
Some way to send and/or receive messages, non-blocking.
timeout: Duration
Timeout for method calls
Implementations
impl<'a, C> Proxy<'a, C>
[src]
pub fn new<D: Into<BusName<'a>>, P: Into<Path<'a>>>(
dest: D,
path: P,
timeout: Duration,
connection: C
) -> Self
[src]
dest: D,
path: P,
timeout: Duration,
connection: C
) -> Self
Creates a new proxy struct.
impl<'a, T, C> Proxy<'a, C> where
T: NonblockReply,
C: Deref<Target = T>,
[src]
T: NonblockReply,
C: Deref<Target = T>,
pub fn method_call<'i, 'm, R: ReadAll + 'static, A: AppendAll, I: Into<Interface<'i>>, M: Into<Member<'m>>>(
&self,
i: I,
m: M,
args: A
) -> MethodReply<R>
[src]
&self,
i: I,
m: M,
args: A
) -> MethodReply<R>
Make a method call using typed input argument, returns a future that resolves to the typed output arguments.
Trait Implementations
impl<'a, C: Clone> Clone for Proxy<'a, C>
[src]
impl<'a, C: Debug> Debug for Proxy<'a, C>
[src]
impl<'a, T: NonblockReply, C: Deref<Target = T>> Introspectable for Proxy<'a, C>
[src]
fn introspect(&self) -> MethodReply<String>
[src]
impl<'a, T: NonblockReply, C: Deref<Target = T>> ObjectManager for Proxy<'a, C>
[src]
fn get_managed_objects(
&self
) -> MethodReply<HashMap<Path<'static>, HashMap<String, HashMap<String, Variant<Box<dyn RefArg + 'static>>>>>>
[src]
&self
) -> MethodReply<HashMap<Path<'static>, HashMap<String, HashMap<String, Variant<Box<dyn RefArg + 'static>>>>>>
impl<'a, T: NonblockReply, C: Deref<Target = T>> Peer for Proxy<'a, C>
[src]
fn ping(&self) -> MethodReply<()>
[src]
fn get_machine_id(&self) -> MethodReply<String>
[src]
impl<'a, T: NonblockReply, C: Deref<Target = T>> Properties for Proxy<'a, C>
[src]
fn get<R0: for<'b> Get<'b> + 'static>(
&self,
interface_name: &str,
property_name: &str
) -> MethodReply<R0>
[src]
&self,
interface_name: &str,
property_name: &str
) -> MethodReply<R0>
fn get_all(
&self,
interface_name: &str
) -> MethodReply<HashMap<String, Variant<Box<dyn RefArg + 'static>>>>
[src]
&self,
interface_name: &str
) -> MethodReply<HashMap<String, Variant<Box<dyn RefArg + 'static>>>>
fn set<I2: Arg + Append>(
&self,
interface_name: &str,
property_name: &str,
value: I2
) -> MethodReply<()>
[src]
&self,
interface_name: &str,
property_name: &str,
value: I2
) -> MethodReply<()>
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for Proxy<'a, C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<'a, C> Send for Proxy<'a, C> where
C: Send,
C: Send,
impl<'a, C> Sync for Proxy<'a, C> where
C: Sync,
C: Sync,
impl<'a, C> Unpin for Proxy<'a, C> where
C: Unpin,
C: Unpin,
impl<'a, C> UnwindSafe for Proxy<'a, C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,