Skip to main content

spool

Function spool 

Source
pub fn spool<R: Read>(
    input: R,
    path: &Path,
    key_for: &dyn Fn(&SnapshotHeader) -> Result<SnapshotKey>,
) -> Result<(SnapshotHeader, Manifest)>
Expand description

Spools a snapshot stream to path, then checks it against its sealed manifest, so nothing is applied from a stream that was cut or altered and the exporter’s read transaction is pinned only for the transfer. The spool appears at path only once it checks out.