Skip to main content

reload_once

Function reload_once 

Source
pub fn reload_once(
    path: &Path,
    live: &LiveTreeLimits,
) -> Result<TreeLimits, TreeReloadError>
Expand description

One pass: read path, and install its bounds into live if they are whole and in range.

Public and separate from the timer for the reason crate::blob_collect::collect_once is: a caller can run exactly one pass without waiting on a clock. Answers the bounds now live on success, whether or not they changed.