pub struct Head {
pub disk: Hash,
pub role: DeviceRole,
pub away: bool,
pub heads: Vec<ChangeId>,
pub damaged: u64,
pub unrepaired: u64,
pub waits: u64,
}Expand description
The head of an account: the disk, its device’s marks, the space’s changes it holds, and what the replica’s checks found damaged.
Fields§
§disk: HashThe disk’s ID in the space.
role: DeviceRoleIts device’s role.
away: boolWhether its device is kept away from home.
heads: Vec<ChangeId>The replica’s heads: the space’s changes it holds are these and what they build on.
damaged: u64How many of its copies of the space’s files its checks found damaged in the last 4 weeks.
unrepaired: u64How many of its copies that checks found damaged are damaged still: sealed blobs that wait for an intact copy, and originals that do not hold their content.
waits: u64How many days its device waits before it destroys what a purge destroys, as the wait in force when the page was issued: 0 for none (technical design).
Trait Implementations§
impl Eq for Head
impl StructuralPartialEq for Head
Auto Trait Implementations§
impl Forget for Head
impl Freeze for Head
impl Move for Head
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnsafeUnpin for Head
impl UnwindSafe for Head
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