Weave documentation
Rust referenceweave-agentfs-mirror

weave-agentfs-mirror · options

Source declarations, signatures and documentation for options.

Reviewed implementation boundary: The mirror plan executor contains NotImplemented paths. A generated plan is not a successfully synchronized remote filesystem. See /libraries/agentfs-mirror/overview.

Source: sigil/weave/local/agentfs-mirror/src/options.rs. SHA-256: 464b8970f9e668c25e26a1fb2bc1cb1c2e587e69944b5e3d2674ff60aae4fa63.

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.

options::SyncDirection

Sync direction

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum SyncDirection {
    /// Push from source to target
    Push,
    /// Pull from target to source
    Pull,
    /// Bidirectional sync
    Bidirectional,
}

Source line: 8.

options::SyncMode

Sync mode

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum SyncMode {
    /// Copy only new/modified files
    Update,
    /// Mirror exactly (may delete files)
    Mirror,
    /// Archive mode (preserve everything)
    Archive,
}

Source line: 19.

options::MirrorOptions

Mirror options

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MirrorOptions {
/// Sync direction

pub direction: SyncDirection,
/// Sync mode

pub mode: SyncMode,
/// Enable sparse replication

pub sparse: bool,
/// Delete files not in source

pub delete: bool,
/// Follow symbolic links

pub follow_links: bool,
/// Preserve permissions

pub preserve_permissions: bool,
/// Preserve timestamps

pub preserve_timestamps: bool,
/// Verify after sync

pub verify: bool,
/// Dry run (don't actually sync)

pub dry_run: bool,
/// Maximum file size to sync

pub max_file_size: Option<u64>,
/// Ignore patterns

pub ignore_patterns: Vec<String>,
/// Conflict resolution strategy

pub conflict_strategy: ConflictStrategy,
/// Watch for changes after sync

pub watch: bool,
/// Watch interval

pub watch_interval: Duration,
/// Progress reporting

pub progress: bool,
/// Number of parallel operations

pub parallel_ops: usize
}

Source line: 30.

options::MirrorOptions::with_direction

pub fn with_direction(mut self, direction: SyncDirection) -> Self;

Source line: 104.

options::MirrorOptions::with_sparse

pub fn with_sparse(mut self, sparse: bool) -> Self;

Source line: 109.

options::MirrorOptions::with_watch

pub fn with_watch(mut self, watch: bool) -> Self;

Source line: 114.

options::MirrorOptions::with_mode

pub fn with_mode(mut self, mode: SyncMode) -> Self;

Source line: 119.

On this page