pub struct Disk {
pub id: Hash,
pub here: bool,
pub replicas: Vec<DiskReplica>,
pub archive: bool,
pub away: bool,
pub issued: Option<u64>,
pub damaged: u64,
pub unrepaired: u64,
pub backups: Vec<DiskBackup>,
}Expand description
A disk that holds copies of a space’s files or changes, as this replica holds them now and the other replicas’ accounts say.
Fields§
§id: HashIts ID in the space.
here: boolWhether this replica is on it.
replicas: Vec<DiskReplica>The replicas on it whose accounts came, this one first if it is on it.
archive: boolWhether it is an archive node’s: every replica on it says that its device is one.
away: boolWhether it is kept away from home: every replica on it says that its device is.
issued: Option<u64>When the latest head of an account of a replica on it was issued, in milliseconds since 1970, if one is kept: this replica’s own, on its disk.
damaged: u64How many copies the checks of the replicas on it found damaged in the last 4 weeks, as their accounts say: this replica’s as it knows now.
unrepaired: u64How many of the copies that their checks found damaged are damaged still.
backups: Vec<DiskBackup>The backups on it whose accounts came.
Trait Implementations§
impl Eq for Disk
impl StructuralPartialEq for Disk
Auto Trait Implementations§
impl Forget for Disk
impl Freeze for Disk
impl Move for Disk
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnsafeUnpin for Disk
impl UnwindSafe for Disk
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.