pub struct DiskState {
pub on_disk: HashMap<String, DiskEntry>,
pub classification: HashMap<String, Classification>,
pub removed: Vec<String>,
}Expand description
Result of walking the repo and classifying each file against a manifest.
Fields§
§on_disk: HashMap<String, DiskEntry>For each file currently on disk: its metadata.
classification: HashMap<String, Classification>Per-file classification — keys mirror on_disk.
removed: Vec<String>Paths that were in the manifest but are not on disk now.
Implementations§
Source§impl DiskState
impl DiskState
Sourcepub fn count_added(&self) -> usize
pub fn count_added(&self) -> usize
Count of files in each classification bucket.
pub fn count_modified(&self) -> usize
pub fn count_mtime_only(&self) -> usize
pub fn count_unchanged(&self) -> usize
pub fn count_removed(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiskState
impl RefUnwindSafe for DiskState
impl Send for DiskState
impl Sync for DiskState
impl Unpin for DiskState
impl UnsafeUnpin for DiskState
impl UnwindSafe for DiskState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more