pub enum SessionEntriesPatch {
Delta {
append: Vec<SessionEntry>,
replace: Vec<IndexedEntry>,
append_text: Vec<TextDelta>,
},
ReplaceAll {
entries: Vec<SessionEntry>,
},
}Expand description
Incremental transcript change (TS SessionEntriesPatch).
All indices are absolute host indices; the client translates them into its window, drops anything below it, and trims its front when the window doubles.
Variants§
Delta
Append new entries and/or rewrite existing ones in place.
ReplaceAll
Replace the whole transcript (session switch, compaction).
Fields
§
entries: Vec<SessionEntry>Trait Implementations§
Source§impl Clone for SessionEntriesPatch
impl Clone for SessionEntriesPatch
Source§impl Debug for SessionEntriesPatch
impl Debug for SessionEntriesPatch
Source§impl<'de> Deserialize<'de> for SessionEntriesPatch
impl<'de> Deserialize<'de> for SessionEntriesPatch
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 SessionEntriesPatch
impl PartialEq for SessionEntriesPatch
Source§impl Serialize for SessionEntriesPatch
impl Serialize for SessionEntriesPatch
impl StructuralPartialEq for SessionEntriesPatch
Auto Trait Implementations§
impl Forget for SessionEntriesPatch
impl Freeze for SessionEntriesPatchwhere
*const u8 is !null: Freeze,
PhantomData<SessionEntry>: Freeze,
PhantomData<IndexedEntry>: Freeze,
PhantomData<TextDelta>: Freeze,
impl Move for SessionEntriesPatch
impl RefUnwindSafe for SessionEntriesPatch
impl Send for SessionEntriesPatch
impl Sync for SessionEntriesPatch
impl Unpin for SessionEntriesPatch
impl UnsafeUnpin for SessionEntriesPatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SessionEntry>: UnsafeUnpin,
PhantomData<IndexedEntry>: UnsafeUnpin,
PhantomData<TextDelta>: UnsafeUnpin,
impl UnwindSafe for SessionEntriesPatch
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