pub struct Page {
pub version: u32,
pub next: Cursor,
pub events: Vec<Event>,
pub terminal: bool,
pub gap: Option<String>,
}Expand description
Bounded proof event page, independent from whole-result RPC payload size.
Fields§
§version: u32Independent stream version.
next: CursorCursor to pass to the next request, including empty pages.
events: Vec<Event>Ordered durable observations.
terminal: boolTrue only when no further worker observations can arrive.
gap: Option<String>Missing or rejected events make the stream incomplete; never hide a gap.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Page
impl<'de> Deserialize<'de> for Page
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Forget for Page
impl Freeze for Page
impl Move for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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