pub struct PolicyCount {
pub policy: Option<EntityId>,
pub name: Option<String>,
pub needs: Needs,
pub files: usize,
pub short: usize,
pub lacking: Vec<EntityId>,
pub few_copies: usize,
pub few_away: usize,
pub few_archived: usize,
pub unchecked: usize,
pub none_here: Vec<EntityId>,
pub not_stored: Vec<EntityId>,
}Expand description
How a policy is met for the files it is chosen for.
Fields§
§policy: Option<EntityId>The policy, or None for the files that no rule chooses for.
name: Option<String>Its name, if it has one.
needs: NeedsWhat it asks.
files: usizeThe files it is chosen for.
short: usizeThose that lack copies: every file with fewer disks than the policy needs, or fewer of them away from home or on archive nodes.
lacking: Vec<EntityId>Which they are, for an app to list.
few_copies: usizeThose on fewer disks than the policy needs.
few_away: usizeThose with fewer copies away from home than the policy needs.
few_archived: usizeThose with fewer copies on archive nodes than the policy needs.
unchecked: usizeThose with a copy that does not count, as it was last checked more than 8 weeks ago (technical design: checking and repair).
none_here: Vec<EntityId>Those of which this device holds no copy at all: not in the store, and not where they were found, unchanged.
not_stored: Vec<EntityId>Those that the policy keeps in the store, which this device holds only where they are.
Trait Implementations§
Source§impl Clone for PolicyCount
impl Clone for PolicyCount
Source§impl Debug for PolicyCount
impl Debug for PolicyCount
impl Eq for PolicyCount
Source§impl PartialEq for PolicyCount
impl PartialEq for PolicyCount
impl StructuralPartialEq for PolicyCount
Auto Trait Implementations§
impl Forget for PolicyCount
impl Freeze for PolicyCount
impl Move for PolicyCount
impl RefUnwindSafe for PolicyCount
impl Send for PolicyCount
impl Sync for PolicyCount
impl Unpin for PolicyCount
impl UnsafeUnpin for PolicyCount
impl UnwindSafe for PolicyCount
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.