pub enum Action {
Sleep(Duration),
Forever,
Quit,
}
Expand description
Return value of poll
, which specifies what one should do next: sleep,
wait forever (until client modifies the xidlehook instance),
Variants§
Sleep(Duration)
Sleep for (at most) a specified duration
Forever
Xidlehook has nothing to do, so you should effectively wait forever until the client modifies the xidlehook instance
Quit
A module wants xidlehook to quit
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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