//! `PendingSegment` data carrier for the async WAL writer.
//!
//! Split out of the monolithic `wal.rs` (lines ~183-199) as a small first
//! cut of the async-writer cluster's decomposition. Holds the path, LSN
//! range, file handle, rotation timestamp, and size of a WAL segment that
//! has been rotated away from the active writer but still awaits its
//! background fsync.
use File;
use PathBuf;
use Instant;
use Lsn;
/// A pending segment awaiting background sync.
///
/// Contains all information needed to sync the segment in the background
/// and track its LSN coverage for ordering guarantees.