[−][src]Struct zbus::fdo::DBusProxy
Proxy for the org.freedesktop.DBus
interface.
Implementations
impl<'c> DBusProxy<'c>
[src]
pub fn new(conn: &'c Connection) -> Result<Self>
[src]
Creates a new proxy with the default service & path.
pub fn new_for(
conn: &'c Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
[src]
conn: &'c Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
Creates a new proxy for the given destination
and path
.
pub fn add_match(&self, rule: &str) -> Result<()>
[src]
Adds a match rule to match messages going through the message bus
pub fn get_adt_audit_session_data(&self, bus_name: &str) -> Result<Vec<u8>>
[src]
Returns auditing data used by Solaris ADT, in an unspecified binary format.
pub fn get_connection_credentials(
&self,
bus_name: &str
) -> Result<HashMap<String, OwnedValue>>
[src]
&self,
bus_name: &str
) -> Result<HashMap<String, OwnedValue>>
Returns as many credentials as possible for the process connected to the server.
pub fn get_connection_selinux_security_context(
&self,
bus_name: &str
) -> Result<Vec<u8>>
[src]
&self,
bus_name: &str
) -> Result<Vec<u8>>
Returns the security context used by SELinux, in an unspecified format.
pub fn get_connection_unix_process_id(&self, bus_name: &str) -> Result<u32>
[src]
Returns the Unix process ID of the process connected to the server.
pub fn get_connection_unix_user(&self, bus_name: &str) -> Result<u32>
[src]
Returns the Unix user ID of the process connected to the server.
pub fn get_id(&self) -> Result<String>
[src]
Gets the unique ID of the bus.
pub fn get_name_owner(&self, name: &str) -> Result<String>
[src]
Returns the unique connection name of the primary owner of the name given.
pub fn hello(&self) -> Result<String>
[src]
Returns the unique name assigned to the connection.
pub fn list_activatable_names(&self) -> Result<Vec<String>>
[src]
Returns a list of all names that can be activated on the bus.
pub fn list_names(&self) -> Result<Vec<String>>
[src]
Returns a list of all currently-owned names on the bus.
pub fn list_queued_owners(&self, name: &str) -> Result<Vec<String>>
[src]
List the connections currently queued for a bus name.
pub fn name_has_owner(&self, name: &str) -> Result<bool>
[src]
Checks if the specified name exists (currently has an owner).
pub fn release_name(&self, name: &str) -> Result<()>
[src]
Ask the message bus to release the method caller's claim to the given name.
pub fn reload_config(&self) -> Result<()>
[src]
Reload server configuration.
pub fn remove_match(&self, rule: &str) -> Result<()>
[src]
Removes the first rule that matches.
pub fn request_name(
&self,
name: &str,
flags: BitFlags<RequestNameFlags>
) -> Result<RequestNameReply>
[src]
&self,
name: &str,
flags: BitFlags<RequestNameFlags>
) -> Result<RequestNameReply>
Ask the message bus to assign the given name to the method caller.
pub fn start_service_by_name(&self, name: &str, flags: u32) -> Result<u32>
[src]
Tries to launch the executable associated with a name (service activation), as an explicit request.
pub fn update_activation_environment(
&self,
environment: HashMap<&str, &str>
) -> Result<()>
[src]
&self,
environment: HashMap<&str, &str>
) -> Result<()>
This method adds to or modifies that environment when activating services.
pub fn features(&self) -> Result<Vec<String>>
[src]
This signal indicates that the owner of a name has changed. It's also the signal to use to detect the appearance of new names on the bus. This signal is sent to a specific application when it loses ownership of a name. This signal is sent to a specific application when it gains ownership of a name. This property lists abstract “features” provided by the message bus, and can be used by clients to detect the capabilities of the message bus with which they are communicating.
pub fn interfaces(&self) -> Result<Vec<String>>
[src]
This property lists interfaces provided by the /org/freedesktop/DBus
object, and can be
used by clients to detect the capabilities of the message bus with which they are
communicating. Unlike the standard Introspectable interface, querying this property does ot
require parsing XML. This property was added in version 1.11.x of the reference
implementation of the message bus.
The standard org.freedesktop.DBus
and org.freedesktop.DBus.Properties
interfaces are not
included in the value of this property, because their presence can be inferred from the fact
that a method call on org.freedesktop.DBus.Properties
asking for properties of
org.freedesktop.DBus
was successful. The standard org.freedesktop.DBus.Peer
and
org.freedesktop.DBus.Introspectable
interfaces are not included in the value of this
property either, because they do not indicate features of the message bus implementation.
pub fn introspect(&self) -> Result<String>
[src]
Auto Trait Implementations
impl<'c> !RefUnwindSafe for DBusProxy<'c>
impl<'c> !Send for DBusProxy<'c>
impl<'c> !Sync for DBusProxy<'c>
impl<'c> Unpin for DBusProxy<'c>
impl<'c> !UnwindSafe for DBusProxy<'c>
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, 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>,