pub enum Progress {
Continue,
Abort,
Reset,
Stop,
}
Expand description
A decision each module has to take before a timer is executed: Should it be?
Variants§
Continue
Continue the program, no action taken.
Abort
Abort this chain, don’t pursue it any longer. The timers won’t be checked again, until the user is active.
Reset
Like abort, but is immediately ready to check timers again. See https://github.com/jD91mZM2/xidlehook/issues/43 for a quick description of why this exists: When an application goes out of fullscreen, you don’t want to re-check it all the time. But an application can stop playing audio without user interaction.
Stop
Stop the program completely. Use this sparingly.
Trait Implementations§
impl Copy for Progress
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnwindSafe for Progress
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