Module storage

Module storage 

Source
Expand description

Configurable implementations for the buffer’s storage layer. Pre-configured implementations are available for memory and temporary file-based storage.

Modules§

adaptive
Storage wrappers that adaptively choose between two storage providers based on content length.
bounded
Storage wrappers for restricting the size of the underlying storage layer.
memory
Storage implementations for reading and writing to an in-memory buffer. If the content length is known, the buffer size will be initialized to the content length, but the buffer will expand beyond that if required.
temptemp-storage
Storage implementations for reading and writing to a temporary file. If the content length is known, the buffer size will be initialized to the content length, but the buffer will expand beyond that if required.

Traits§

StorageProvider
Creates a StorageReader and StorageWriter based on the content length returned from the SourceStream. The reader and writer must track their position in the stream independently.
StorageReader
Trait used to read from a storage layer
StorageWriter
Handle for writing to the underlying storage layer.