pub struct Logind {
pub compositors: Vec<String>,
pub cgroup_root: PathBuf,
}Fields§
§compositors: Vec<String>Process names that are a compositor (comm), for the per-session
readiness check (§9). Empty: the backend does not judge compositors.
cgroup_root: PathBufImplementations§
Source§impl Logind
impl Logind
Sourcefn session_comms(&self, s: &SessionInfo) -> Option<Vec<String>>
fn session_comms(&self, s: &SessionInfo) -> Option<Vec<String>>
The comm of every process in a session’s scope; None if the scope
cannot be read.
Trait Implementations§
Source§impl SessionBackend for Logind
impl SessionBackend for Logind
Source§fn foreground(&self) -> Vec<String>
fn foreground(&self) -> Vec<String>
§10 foreground signals: a GameMode client for the uid of an active local session, or a gamescope in the session. (The idle-inhibitor and Do Not Disturb signals have no session-independent source yet.)
fn sessions(&self) -> Result<Vec<SessionInfo>, Outcome>
fn power(&self) -> Option<PowerSource>
Source§fn compositor_running(&self, s: &SessionInfo) -> Option<bool>
fn compositor_running(&self, s: &SessionInfo) -> Option<bool>
Whether a compositor runs in this session’s own cgroup (§9); None if
the backend cannot see.
Auto Trait Implementations§
impl Freeze for Logind
impl RefUnwindSafe for Logind
impl Send for Logind
impl Sync for Logind
impl Unpin for Logind
impl UnsafeUnpin for Logind
impl UnwindSafe for Logind
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