Skip to main content

StatFetcher

Trait StatFetcher 

Source
pub trait StatFetcher {
    // Required method
    fn stat(&self, frn: u64) -> Option<(u64, i64)>;
}
Expand description

Size/mtime lookup for created/changed files. The USN record carries neither (RESEARCH.md), so the live session asks the volume; replay tests inject canned values.

Required Methods§

Source

fn stat(&self, frn: u64) -> Option<(u64, i64)>

Look up the current size (bytes) and mtime for an FRN, or None when the file is already gone or the fetcher has no answer.

Implementors§

Source§

impl StatFetcher for fmf_core::engine::watch::NullStatFetcher

Source§

impl StatFetcher for VolumeStatFetcher

Source§

impl StatFetcher for fmf_core::usn::apply::NullStatFetcher