1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! The port through which a store's contents are listed and removed.
//!
//! Its own file, and apart from [`ContentStore`](crate::ContentStore), because a build holds a
//! `ContentStore` and must not be able to remove what it stored; only the command that clears the
//! store is handed this.
//!
//! Responsibilities: [`Sweep`].
//!
//! Non-responsibilities: implementing it, and choosing what to remove. The first belongs to an
//! adapter crate; the second to the module that decides what is still wanted.
//!
//! This file holds only a trait definition, so it carries no logic to unit-test.
use BTreeSet;
use crateResult;
use crateDigest;
/// Lists and removes what a content store holds. Kept apart from `ContentStore`, so a build,
/// which holds a `ContentStore`, cannot remove what it stored.