pub struct SystemdUser { /* private fields */ }Expand description
Blocking client for the systemd user-session D-Bus manager.
Implementations§
Source§impl SystemdUser
impl SystemdUser
Sourcepub fn connect() -> Option<Self>
pub fn connect() -> Option<Self>
Connect to the session bus at daemon startup. Returns None if no
session bus is available (e.g. headless, no DBUS_SESSION_BUS_ADDRESS)
— callers then fall back to raw cgroup operations everywhere.
Auto Trait Implementations§
impl !RefUnwindSafe for SystemdUser
impl !UnwindSafe for SystemdUser
impl Freeze for SystemdUser
impl Send for SystemdUser
impl Sync for SystemdUser
impl Unpin for SystemdUser
impl UnsafeUnpin for SystemdUser
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