sara-tasks 2.7.4

Sara — folder-aware task manager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// How an anchored file compares with the fingerprint stored when it was anchored.
#[derive(Clone, Debug, PartialEq)]
pub enum AnchorState {
    Fresh,
    Drifted(f64),
    Missing,
    Unknown,
}

impl AnchorState {
    pub fn is_stale(&self) -> bool {
        matches!(self, AnchorState::Missing | AnchorState::Drifted(_))
    }
}