//! Piece storage management for segmented downloads.
//!
//! This module provides the [`PieceStorage`] trait and [`DefaultPieceStorage`]
//! implementation for tracking download progress at the piece level. It supports
//! both HTTP segmented downloads and BitTorrent piece-based downloads.
//!
//! # Architecture Reference
//!
//! Based on original aria2 C++ structure:
//! - `src/PieceStorage.h` — Piece storage interface
//! - `src/DefaultPieceStorage.h/.cc` — Default implementation
//! - `src/Piece.h` — Piece class
//! - `src/BitfieldMan.h` — Bitfield management
//!
//! # Key Types
//!
//! - [`BitfieldMan`] — Manages completion/usage/filter bitfields for piece tracking
//! - [`Piece`] — Represents a single downloadable piece with block-level tracking
//! - [`PieceStorage`] — Trait interface for piece storage operations
//! - [`DefaultPieceStorage`] — Default implementation suitable for HTTP/FTP and BT
// Public re-exports — preserve the original `piece_storage::X` API surface
pub use BitfieldMan;
pub use DefaultPieceStorage;
pub use PieceStorage;
pub use StreamPieceSelectorKind;