Weave documentation
Rust referenceweave-agentfs-mirror

weave-agentfs-mirror · error

Source declarations, signatures and documentation for error.

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/error.rs. SHA-256: 615cd4d2cbc0ffd81165d709a0a2f4cbffdb7af1f763a36382bf9454357fbe69.

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.

error::MirrorError

Errors that can occur during mirror operations

#[derive(Debug, Error)]
pub enum MirrorError {
    #[error("Source not accessible: {0}")]
    SourceNotAccessible(String),

    #[error("Target not accessible: {0}")]
    TargetNotAccessible(String),

    #[error("Sync conflict: {path} modified in both locations")]
    SyncConflict {
        path: PathBuf,
        source_mtime: std::time::SystemTime,
        target_mtime: std::time::SystemTime,
    },

    #[error("Agent mismatch: {0}")]
    AgentMismatch(String),

    #[error("Permission denied: {0}")]
    PermissionDenied(String),

    #[error("Sparse replication error: {0}")]
    SparseError(String),

    #[error("Watch error: {0}")]
    WatchError(String),

    #[error("Sync aborted by user")]
    SyncAborted,

    #[error("Invalid sync direction for operation")]
    InvalidDirection,

    #[error("File too large for sync: {path} ({size} bytes)")]
    FileTooLarge { path: PathBuf, size: u64 },

    #[error("Checksum mismatch after sync: {0}")]
    ChecksumMismatch(PathBuf),

    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("AgentFS error: {0}")]
    AgentFS(#[from] agentfs::AgentFSError),

    #[error("Locus error: {0}")]
    Locus(#[from] locus::LocusError),

    #[error("Diff error: {0}")]
    Diff(#[from] agentfs_diff::DiffError),

    #[error("Serialization error: {0}")]
    Serialization(#[from] serde_json::Error),

    #[error("Not implemented: {0}")]
    NotImplemented(String),
}

Source line: 8.

error::Result

Result type for mirror operations

pub type Result<T> = std::result::Result<T, MirrorError>;

Source line: 66.

On this page