pub struct GapPage<T> { /* private fields */ }Expand description
One lossless page supplied by the connection layer.
Implementations§
Source§impl<T> GapPage<T>
impl<T> GapPage<T>
Sourcepub const fn new(events: Vec<GapEvent<T>>, next_cursor: PageCursor) -> Self
pub const fn new(events: Vec<GapEvent<T>>, next_cursor: PageCursor) -> Self
A page of events in view order, and the page’s nextCursor.
Sourcepub const fn next_cursor(&self) -> &PageCursor
pub const fn next_cursor(&self) -> &PageCursor
Whether more pages follow, and from which cursor.
Trait Implementations§
impl<T: Eq> Eq for GapPage<T>
impl<T: PartialEq> StructuralPartialEq for GapPage<T>
Auto Trait Implementations§
impl<T> Forget for GapPage<T>
impl<T> Freeze for GapPage<T>
impl<T> Move for GapPage<T>
impl<T> RefUnwindSafe for GapPage<T>
impl<T> Send for GapPage<T>
impl<T> Sync for GapPage<T>
impl<T> Unpin for GapPage<T>
impl<T> UnsafeUnpin for GapPage<T>
impl<T> UnwindSafe for GapPage<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more