pub struct TreeStatus {
pub tree: EntityId,
pub root: PathBuf,
pub changes: Vec<TreeChange>,
pub behind: Vec<String>,
pub competing: Vec<String>,
pub skipped: Vec<(String, String)>,
pub cut_short: Vec<CutShort>,
pub read: usize,
pub repositories: Vec<String>,
pub secret: Vec<String>,
pub sealed: Vec<String>,
}Expand description
What a tree’s copy on this device holds that the tree does not, and what the tree holds that the copy does not.
Fields§
§tree: EntityIdThe tree.
root: PathBufIts folder on this device.
changes: Vec<TreeChange>What a commit would record, by path.
behind: Vec<String>The paths that changed in the tree since the copy was written, as by another device, which the copy does not have yet: other versions, moves, additions and deletions.
competing: Vec<String>The paths that have competing values, as when two devices committed one file offline: several versions, several paths, or several files at one path.
skipped: Vec<(String, String)>What the copy holds that a commit cannot take, by path, with why.
cut_short: Vec<CutShort>The commits cut short, as by a crash, before all their parts were made: the next commit takes in the rest.
read: usizeHow many files were read in full: those whose size or time changed.
repositories: Vec<String>The folders of the copy that hold Git repositories, by their paths in the tree: what
nib asks Git about, for a commit to record.
secret: Vec<String>The paths among the changes that are secret files, or would go in as new ones, which a commit seals for the space’s secrets (technical design: secrets in trees).
sealed: Vec<String>The secret files of the tree that this copy lacks, as this replica cannot read them: its secrets are locked, or not on this device.
Trait Implementations§
Source§impl Clone for TreeStatus
impl Clone for TreeStatus
Source§impl Debug for TreeStatus
impl Debug for TreeStatus
impl Eq for TreeStatus
Source§impl PartialEq for TreeStatus
impl PartialEq for TreeStatus
impl StructuralPartialEq for TreeStatus
Auto Trait Implementations§
impl Forget for TreeStatus
impl Freeze for TreeStatus
impl Move for TreeStatus
impl RefUnwindSafe for TreeStatus
impl Send for TreeStatus
impl Sync for TreeStatus
impl Unpin for TreeStatus
impl UnsafeUnpin for TreeStatus
impl UnwindSafe for TreeStatus
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.