pub struct LogPage {
pub records: LogRecords,
pub first_sequence_number: Option<u64>,
pub result_flags: (bool, bool, bool),
pub gap: Option<LogGap>,
pub violations: Vec<ReadRangeViolation>,
pub next: LogCursor,
pub done: bool,
pub wrapped: bool,
}Expand description
One page of a paged log read.
Fields§
§records: LogRecordsThe page’s records, oldest first.
first_sequence_number: Option<u64>The first record’s sequence number; None for a page read by
position, or an empty page.
result_flags: (bool, bool, bool)FIRST_ITEM, LAST_ITEM and MORE_ITEMS as the device set them; all false for a page the reader made up for an empty log.
gap: Option<LogGap>Set when the first record is past the one the read asked for.
violations: Vec<ReadRangeViolation>Rules the device’s answer broke that the reader tolerates, such as a first sequence number of 0 after the device’s wrap.
next: LogCursorWhere to read next: the next page while done is false, else the
checkpoint to resume from once the log has more records.
done: boolThe page reached the newest record (LAST_ITEM), or found none.
wrapped: boolThe page’s records reach the top of the sequence range, so next
wrapped to 1. A device that numbers the record after the top 0
rather than 1 (against the standard) is then one number ahead of
next; see read_log_page.