pub struct Listing {
pub hash: ContentHash,
pub entries: Option<Vec<DirEntry>>,
pub sorted_hash: ContentHash,
}Expand description
The recorded contents of a listed directory, in the order the file system returned its entries when kizz read it. Entry inode numbers are not recorded.
Fields§
§hash: ContentHashThe hash of the entry names and types, in the order the file system returned them.
entries: Option<Vec<DirEntry>>The entries, in the order the file system returned them, when there are at
most MAX_LISTED_NAMES; None above that.
sorted_hash: ContentHashThe hash of the same entries sorted by name and type, which tells a change of order alone from a change of entries, in a directory of any size.
Trait Implementations§
impl Eq for Listing
impl StructuralPartialEq for Listing
Auto Trait Implementations§
impl Freeze for Listing
impl RefUnwindSafe for Listing
impl Send for Listing
impl Sync for Listing
impl Unpin for Listing
impl UnsafeUnpin for Listing
impl UnwindSafe for Listing
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.