Weave documentation
Rust referencestrand-vault

strand-vault · snapshot

Source declarations, signatures and documentation for snapshot.

Reviewed implementation boundary: Vault construction does not automatically replay WAL entries. Snapshotting is a best-effort directory copy; replication mode/live settings are not implemented as runtime controls, and the capability preamble is not ACT authorization verification. See /libraries/strand-vault/overview.

Source: sigil/weave/libs/strand-vault/src/snapshot.rs. SHA-256: 416417ac35486beb8d76cc8d096146da6b7adb8d4518648ebf9db744b5f19f6f.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

snapshot::SnapshotRef

#[derive(Debug, Clone)]
pub struct SnapshotRef {
pub path: PathBuf,
pub label: String
}

Source line: 8.

snapshot::snapshot_dir

pub async fn snapshot_dir(src: &Path, dst: &Path) -> Result<()>;

Source line: 13.

snapshot::restore_dir

pub async fn restore_dir(src: &Path, dst: &Path) -> Result<()>;

Source line: 21.

On this page