strand-blobs · config
Source declarations, signatures and documentation for config.
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/config.rs. SHA-256: 3799d82145582dafdfb9ee8a539b0708b1921914f20f912f014facb83a459528.
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.
config::BlobConfig
Configuration for the blob store
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BlobConfig {
/// Size of chunks in bytes
pub chunk_size: usize,
/// Maximum cache size in bytes
pub cache_size: usize,
/// Enable compression
pub compression: Option<CompressionType>,
/// Verify chunk hashes on read
pub verify_chunks: bool,
/// Parallel chunk uploads
pub parallel_chunks: usize,
/// Maximum blob size in bytes (0 = unlimited)
pub max_blob_size: u64
}Source line: 7.
config::CompressionType
Compression types supported
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum CompressionType {
/// No compression
None,
/// Zstandard compression
#[cfg(feature = "zstd")]
Zstd,
/// LZ4 compression
#[cfg(feature = "lz4")]
Lz4,
/// Snappy compression
#[cfg(feature = "snap")]
Snappy,
}Source line: 42.
config::CompressionType::as_str
Get string representation
pub fn as_str(&self) -> &'static str;Source line: 58.
config::CompressionType::parse
Parse from string.
pub fn parse(s: &str) -> Option<Self>;Source line: 71.