pub struct VolumeStatFetcher {
handle: OwnedHandle,
failures: AtomicU64,
}Expand description
Live stat fetcher: opens the file by FRN on the same volume and reads size + mtime. Read-only, never follows the open with any mutation.
Fields§
§handle: OwnedHandle§failures: AtomicU64Implementations§
Source§impl VolumeStatFetcher
impl VolumeStatFetcher
Sourcefn note_failure(&self, frn: u64, stage: &str)
fn note_failure(&self, frn: u64, stage: &str)
Failures here are expected (file deleted before we look) but a flood of them is not — count every one, log the first few with the win32 code so the pattern is diagnosable.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VolumeStatFetcher
impl RefUnwindSafe for VolumeStatFetcher
impl Send for VolumeStatFetcher
impl Sync for VolumeStatFetcher
impl Unpin for VolumeStatFetcher
impl UnsafeUnpin for VolumeStatFetcher
impl UnwindSafe for VolumeStatFetcher
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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