#[non_exhaustive]pub struct SessionHistory {
pub mode: HistoryMode,
pub items: Option<Vec<Item>>,
pub snapshot: Option<ViewSnapshot>,
pub none_reason: Option<HistoryNoneReason>,
pub checkpoint_boundary: Option<CheckpointBoundary>,
}Expand description
The history envelope shared by session/resume, session/fork, and
session/read.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: HistoryModeWhat was actually served — never what was asked for.
items: Option<Vec<Item>>The full folded item array when mode is inline; null otherwise.
snapshot: Option<ViewSnapshot>The folded view state when mode is snapshot or anchoredSnapshot;
null otherwise.
none_reason: Option<HistoryNoneReason>Why no history was served — sent exactly when mode is "none".
checkpoint_boundary: Option<CheckpointBoundary>The checkpoint-prune boundary: rows for served items at-or-before
through_item_id in served order predate the selected checkpoint.
Additive-optional; absence is a non-assertion.
Trait Implementations§
Source§impl Clone for SessionHistory
impl Clone for SessionHistory
Source§impl Debug for SessionHistory
impl Debug for SessionHistory
Source§impl<'de> Deserialize<'de> for SessionHistory
impl<'de> Deserialize<'de> for SessionHistory
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
Source§impl PartialEq for SessionHistory
impl PartialEq for SessionHistory
Source§impl Serialize for SessionHistory
impl Serialize for SessionHistory
impl StructuralPartialEq for SessionHistory
Auto Trait Implementations§
impl Forget for SessionHistory
impl Freeze for SessionHistory
impl Move for SessionHistory
impl RefUnwindSafe for SessionHistory
impl Send for SessionHistory
impl Sync for SessionHistory
impl Unpin for SessionHistory
impl UnsafeUnpin for SessionHistory
impl UnwindSafe for SessionHistory
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