bacon 3.23.0

background rust compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum AutoRefresh {
    /// Don't rerun the job on file changes.
    Paused,
    /// Run the job on file changes.
    Enabled,
}

impl AutoRefresh {
    pub fn is_enabled(self) -> bool {
        matches!(self, AutoRefresh::Enabled)
    }

    pub fn is_paused(self) -> bool {
        matches!(self, AutoRefresh::Paused)
    }
}