pub enum TreeEntryKind {
File {
content: Option<Hash>,
executable: bool,
},
Link {
target: String,
},
Sealed,
}Expand description
What a file or a link of a tree holds.
Variants§
File
A file: its content, unless a purge took it away, and whether it is executable.
Link
A symbolic link, and what it points to.
Sealed
A secret file whose content this replica cannot read now: its secrets are locked, or not on this device (technical design: secrets in trees).
Trait Implementations§
Source§impl Clone for TreeEntryKind
impl Clone for TreeEntryKind
Source§impl Debug for TreeEntryKind
impl Debug for TreeEntryKind
impl Eq for TreeEntryKind
Source§impl PartialEq for TreeEntryKind
impl PartialEq for TreeEntryKind
impl StructuralPartialEq for TreeEntryKind
Auto Trait Implementations§
impl Forget for TreeEntryKind
impl Freeze for TreeEntryKind
impl Move for TreeEntryKind
impl RefUnwindSafe for TreeEntryKind
impl Send for TreeEntryKind
impl Sync for TreeEntryKind
impl Unpin for TreeEntryKind
impl UnsafeUnpin for TreeEntryKind
impl UnwindSafe for TreeEntryKind
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.