(dir: &Path, now: i64)
| 827 | } |
| 828 | |
| 829 | fn list_by_state(dir: &Path, now: i64) -> (Vec<ManagedLifecycle>, Vec<ManagedLifecycle>) { |
| 830 | list_lifecycles(dir) |
| 831 | .into_iter() |
| 832 | .partition(|lifecycle| !lifecycle.is_expired(now) && lifecycle.stop_state.is_none()) |
| 833 | } |
| 834 | |
| 835 | fn list_active(dir: &Path, now: i64) -> Vec<ManagedLifecycle> { |
| 836 | list_by_state(dir, now).0 |