pub struct Purge {Show 13 fields
pub statements: Vec<StatementId>,
pub changes: usize,
pub secret: usize,
pub contents: Vec<Hash>,
pub of_secrets: bool,
pub blobs: usize,
pub elsewhere: Vec<SpaceId>,
pub also: Vec<EntityId>,
pub thumbnails: Vec<EntityId>,
pub checkouts: Vec<PurgedCheckout>,
pub tree_copies: Vec<PurgedCheckout>,
pub originals: Vec<(EntityId, String)>,
pub waiting: Vec<WaitingCopy>,
}Expand description
What a purge takes away: the statements of the values, current or past, and how many changes lose their keys and payloads; the content they refer to, with its sealed copies and this device’s checkouts of it; and the originals of that content that NibKeep knows of, which it leaves where they are.
Fields§
§statements: Vec<StatementId>The statements of the values, and of every other value that holds content that they hold.
changes: usizeHow many changes that asserted them lose their keys and payloads, and are stated again without them.
secret: usizeHow many of the values are secret, and lose only their own keys.
contents: Vec<Hash>The content hashes of the blobs that the values refer to, which are purged with them.
of_secrets: boolWhether that content is a secret field’s, such as a secret file’s, whose secret copies are purged; or else an ordinary field’s, whose ordinary copies are. The same content in fields of the other kind is sealed apart, and stays (technical design: secret files).
blobs: usizeHow many sealed copies of that content lose their keys: those whose keys this replica has opened.
elsewhere: Vec<SpaceId>The replica’s other spaces that keep that content too, ordered by ID: those that keep a key, open or not, for a sealed copy that this space purges, and those that read another copy of it with a key of the same kind. A purge destroys only its own space’s keys, so the content stays there, and an app says so before the purge. Spaces that this replica does not hold are not known (technical design: spaces and moves).
also: Vec<EntityId>The entities other than the one purged whose values hold that content, current or past, which lose it too, but the origins and checkouts of files, and thumbnails: files with the same content, and any other value that refers to it.
thumbnails: Vec<EntityId>The thumbnails made of that content, ordered by ID, which are purged whole, their own content too (technical design: thumbnails).
checkouts: Vec<PurgedCheckout>The checkouts on this device of that content, ordered by path.
tree_copies: Vec<PurgedCheckout>The copies on this device of trees’ files whose version holds that content, ordered by path (technical design: trees).
originals: Vec<(EntityId, String)>Where files with that content were found, on which device, ordered by device and path: their originals, which a purge leaves where they are.
waiting: Vec<WaitingCopy>The person’s own copies that wait before they destroy what the purge destroys, as a purge says before the person confirms: this device first (technical design: copies that wait).
Trait Implementations§
impl Eq for Purge
impl StructuralPartialEq for Purge
Auto Trait Implementations§
impl Forget for Purge
impl Freeze for Purge
impl Move for Purge
impl RefUnwindSafe for Purge
impl Send for Purge
impl Sync for Purge
impl Unpin for Purge
impl UnsafeUnpin for Purge
impl UnwindSafe for Purge
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.