pub struct CloseRule { /* private fields */ }Implementations§
Source§impl CloseRule
impl CloseRule
Sourcepub fn has_open_background_tasks(&self) -> bool
pub fn has_open_background_tasks(&self) -> bool
Whether any background task is known to be outstanding.
The idle-timeout arm consults this: a parent that is correctly quiet while a subagent works is not idle, and killing it is the defect this predicate exists to prevent.
Sourcepub fn should_close(&self) -> bool
pub fn should_close(&self) -> bool
Whether both arms hold and the child’s stdin may be released.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseRule
impl RefUnwindSafe for CloseRule
impl Send for CloseRule
impl Sync for CloseRule
impl Unpin for CloseRule
impl UnsafeUnpin for CloseRule
impl UnwindSafe for CloseRule
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