Skip to main content

visible_page

Function visible_page 

Source
async fn visible_page<Window>(
    listen: &Listen<'_>,
    window: Window,
    from: PduCount,
    next_batch: u64,
) -> Response
where Window: Stream<Item = PdusIterItem> + Send,
Expand description

The events of a window the user may see, as one page of the stream.

A full page ends at its last event. A short one scanned the whole window, hidden events included, so it ends at next_batch. An empty page starts where the stream did.