pub struct AppNames { /* private fields */ }Expand description
Resolves app keys to display_names from the system: installed
desktop entries (read once) and, for versioned binaries, the process name
of a member of the cgroup.
Implementations§
Source§impl AppNames
impl AppNames
Sourcepub fn in_background() -> Self
pub fn in_background() -> Self
Read the desktop entries on a background thread, so the caller (the
guard loop) never waits on the disk. Until they are read, names fall
back to the basename rules of display_name.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for AppNames
impl Freeze for AppNames
impl RefUnwindSafe for AppNames
impl Send for AppNames
impl Unpin for AppNames
impl UnsafeUnpin for AppNames
impl UnwindSafe for AppNames
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