Weave documentation
Rust referencestrand-blobs

strand-blobs · reader

Source declarations, signatures and documentation for reader.

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/reader.rs. SHA-256: 946868e92710b84c93dcd8a495af15458e85571016d7ef2cd9bfbb8b61f15bcf.

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.

reader::BlobReader

Reader for streaming blob data

pub struct BlobReader {

}

Source line: 22.

reader::BlobReader::new

Create a new blob reader

pub fn new(
        data: Arc<RwLock<Strand>>,
        metadata: BlobMetadata,
        cache: Arc<ChunkCache>,
        compression: Option<CompressionType>,
        verify_chunks: bool,
    ) -> Self;

Source line: 63.

reader::BlobReader::with_metrics

Attach metrics to the reader

pub fn with_metrics(mut self, metrics: std::sync::Arc<BlobMetrics>) -> Self;

Source line: 118.

reader::BlobReader::metadata

Get the blob metadata

pub fn metadata(&self) -> &BlobMetadata;

Source line: 124.

reader::BlobReader::size

Get the total size of the blob

pub fn size(&self) -> u64;

Source line: 129.

reader::BlobReader::id

Get the blob ID

pub fn id(&self) -> &crate::BlobId;

Source line: 134.

On this page