Struct lefthk_core::worker::Worker
source · [−]pub struct Worker {
pub keybinds: Vec<Keybind>,
pub base_directory: BaseDirectories,
pub xwrap: XWrap,
pub children: Children,
pub reap_requested: Arc<AtomicBool>,
pub reload_requested: bool,
pub kill_requested: bool,
/* private fields */
}Fields
keybinds: Vec<Keybind>base_directory: BaseDirectoriesxwrap: XWrapchildren: Childrenreap_requested: Arc<AtomicBool>reload_requested: boolkill_requested: boolImplementations
sourceimpl Worker
impl Worker
pub fn new(keybinds: Vec<Keybind>, base_directory: BaseDirectories) -> Self
pub async fn event_loop(&mut self)
sourcepub fn exec(&mut self, command: &str) -> Error
pub fn exec(&mut self, command: &str) -> Error
Sends command for execution Assumes STDIN/STDOUT unwanted.
pub fn register_child_hook(&self)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Worker
impl !Send for Worker
impl !Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more