Skip to main content

item_watermark

Function item_watermark 

Source
pub fn item_watermark(
    position: Position,
    direction: ScanDirection,
    boundary: Option<u64>,
) -> Watermark
Expand description

Build the embedded Watermark for an item: the cursor encodes this item’s position (so the next request’s after/before resumes past it) plus the current direction-matching checkpoint boundary. position is the item’s cursor coordinates (list_checkpoints passes its cp_seq), whose public position is the item’s key in ledger coordinates; the frame’s cursor_position follows from it (see Position::item_resume).