pub struct DbusClient {
pub unique_name: Option<String>,
/* private fields */
}Expand description
Lightweight D-Bus connection for session bus interaction.
Fields§
§unique_name: Option<String>Implementations§
Source§impl DbusClient
impl DbusClient
Sourcepub fn connect() -> Result<Self, String>
pub fn connect() -> Result<Self, String>
Connects to the local session bus and completes SASL authentication.
Sourcepub fn connect_system() -> Result<Self, String>
pub fn connect_system() -> Result<Self, String>
Connects to the local Linux system bus (/run/dbus/system_bus_socket) and completes SASL auth.
Sourcepub fn connect_to_path(socket_path: &str) -> Result<Self, String>
pub fn connect_to_path(socket_path: &str) -> Result<Self, String>
Connects to a specific UNIX domain socket path and performs SASL authentication.
Sourcepub fn next_serial(&mut self) -> u32
pub fn next_serial(&mut self) -> u32
Allocates an incremental serial number.
Sourcepub fn call_hello(&mut self) -> Result<String, String>
pub fn call_hello(&mut self) -> Result<String, String>
Invokes org.freedesktop.DBus.Hello to obtain the assigned client unique name.
Source§impl DbusClient
impl DbusClient
Auto Trait Implementations§
impl Forget for DbusClient
impl Freeze for DbusClient
impl Move for DbusClient
impl RefUnwindSafe for DbusClient
impl Send for DbusClient
impl Sync for DbusClient
impl Unpin for DbusClient
impl UnsafeUnpin for DbusClient
impl UnwindSafe for DbusClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more