#[non_exhaustive]pub enum HistoryMode {
AnchoredSnapshot,
Inline,
Snapshot,
None,
Unknown(String),
}Expand description
What history a lifecycle result actually served. Open on the client side: report-what-was-served means a client treats an unknown mode as “page it yourself”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AnchoredSnapshot
snapshot holds a folded view state anchored at the latest installed
compaction boundary; snapshot.anchor names it.
Inline
items is the full folded item array.
Snapshot
snapshot holds a folded view state at snapshot.viewCursor.
None
No history was served — page it via view/page from the result’s
viewCursor.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for HistoryMode
impl Clone for HistoryMode
Source§impl Debug for HistoryMode
impl Debug for HistoryMode
Source§impl<'de> Deserialize<'de> for HistoryMode
impl<'de> Deserialize<'de> for HistoryMode
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 Eq for HistoryMode
Source§impl PartialEq for HistoryMode
impl PartialEq for HistoryMode
Source§impl Serialize for HistoryMode
impl Serialize for HistoryMode
impl StructuralPartialEq for HistoryMode
Auto Trait Implementations§
impl Forget for HistoryMode
impl Freeze for HistoryMode
impl Move for HistoryMode
impl RefUnwindSafe for HistoryMode
impl Send for HistoryMode
impl Sync for HistoryMode
impl Unpin for HistoryMode
impl UnsafeUnpin for HistoryMode
impl UnwindSafe for HistoryMode
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