Weave documentation
Rust referencestrand-blobs

strand-blobs · error

Source declarations, signatures and documentation for error.

Reviewed implementation boundary: The current GC path quarantines records without reclaiming their stored files. Check actual writer/list/report interfaces and partial-write behavior in /libraries/strand-blobs/overview.

Source: sigil/weave/models/strand-blobs/src/error.rs. SHA-256: 04ad0fe2e9994a26996f54463c2910d8b5280b64ff369e81958cfc022900a9e8.

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::BlobError

Errors that can occur in blob operations

#[derive(Debug, Error)]
pub enum BlobError {
    #[error("Blob not found: {0:?}")]
    BlobNotFound(BlobId),

    #[error("Chunk not found at index {0}")]
    ChunkNotFound(u64),

    #[error("Metadata not found at index {0}")]
    MetadataNotFound(u64),

    #[error("Metadata corruption at index {0}")]
    MetadataCorruption(u64),

    #[error("Checksum mismatch for chunk {0}")]
    ChecksumMismatch(u64),

    #[error("Invalid chunk size: {0}")]
    InvalidChunkSize(usize),

    #[error("Blob too large: {0} bytes (max: {1})")]
    BlobTooLarge(u64, u64),

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

    #[error("Strand error: {0}")]
    Strand(#[from] strand::StrandError),

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

    #[error("System time error: {0}")]
    SystemTime(#[from] std::time::SystemTimeError),

    #[error("Access denied: {0}")]
    AccessDenied(String),

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

Source line: 8.

error::Result

Convenience type alias for Results

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

Source line: 52.

On this page