pub struct CheckedFile {
pub file: EntityId,
pub policy: Option<EntityId>,
pub size: Option<u64>,
pub disks: usize,
pub away: usize,
pub archived: usize,
pub lacks: Lacks,
pub unchecked: bool,
}Expand description
How the copies of a file meet the policy chosen for it, as Library::check_policies
counts them.
Fields§
§file: EntityIdThe file.
policy: Option<EntityId>The policy chosen for it, or None if no rule chooses one.
size: Option<u64>Its size in bytes, as it records it.
disks: usizeThe disks whose copies of it count.
away: usizeHow many of them are away from home.
archived: usizeHow many of them are archive nodes’.
lacks: LacksWhat its copies lack of its policy.
unchecked: boolWhether a disk holds a copy of it that does not count, as it was last checked more than 8 weeks ago.
Trait Implementations§
Source§impl Clone for CheckedFile
impl Clone for CheckedFile
Source§impl Debug for CheckedFile
impl Debug for CheckedFile
impl Eq for CheckedFile
Source§impl PartialEq for CheckedFile
impl PartialEq for CheckedFile
impl StructuralPartialEq for CheckedFile
Auto Trait Implementations§
impl Forget for CheckedFile
impl Freeze for CheckedFile
impl Move for CheckedFile
impl RefUnwindSafe for CheckedFile
impl Send for CheckedFile
impl Sync for CheckedFile
impl Unpin for CheckedFile
impl UnsafeUnpin for CheckedFile
impl UnwindSafe for CheckedFile
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.