Module paginator

Source
Expand description

The paginator is a stateful helper object that handles reaching an event, either from a cache or network, and surrounding events (“context”). Then, it makes it possible to paginate forward or backward, from that event, until one end of the timeline (front or back) is reached.

Structs§

PaginationResult
The result of a single pagination, be it from Paginator::paginate_backward or Paginator::paginate_forward.
Paginator
A stateful object to reach to an event, and then paginate backward and forward from it.
StartFromResult
The result of an initial Paginator::start_from query.

Enums§

PaginatorError
An error that happened when using a Paginator.
PaginatorState
Current state of a Paginator.

Traits§

PaginableRoom
A room that can be paginated.