Rust referenceweave-agentfs-diff
weave-agentfs-diff · error
Source declarations, signatures and documentation for error.
Source: sigil/weave/local/agentfs-diff/src/error.rs. SHA-256: 96dbc2dc6b110b72ba3e4640544c365907237ceb03e6356c6e91fbbf68fab991.
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::DiffError
Errors that can occur during diff operations
#[derive(Debug, Error)]
pub enum DiffError {
#[error("File system not accessible: {0}")]
FileSystemNotAccessible(String),
#[error("Path not found in source: {0}")]
SourcePathNotFound(PathBuf),
#[error("Path not found in target: {0}")]
TargetPathNotFound(PathBuf),
#[error("Incompatible file systems: {0}")]
IncompatibleFileSystems(String),
#[error("Agent mismatch: source {source_agent}, target {target}")]
AgentMismatch {
source_agent: String,
target: String,
},
#[error("Content hash mismatch for {path}")]
ContentMismatch { path: PathBuf },
#[error("Metadata comparison failed: {0}")]
MetadataComparisonFailed(String),
#[error("Watch error: {0}")]
WatchError(String),
#[error("Stream error: {0}")]
StreamError(String),
#[error("Comparison aborted: {0}")]
ComparisonAborted(String),
#[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("Serialization error: {0}")]
Serialization(#[from] serde_json::Error),
}Source line: 8.
error::Result
Result type for diff operations
pub type Result<T> = std::result::Result<T, DiffError>;Source line: 56.