pub struct FrontendAttachSnapshot {
pub descriptor: FrontendRuntimeDescriptor,
pub history: Vec<ChatMessage>,
pub history_cursor: u64,
pub replay: VecDeque<FrontendEvent>,
}Expand description
Serializable half of an attachment returned by an out-of-process runtime. The live receiver is transport-owned and joined to this snapshot locally.
Fields§
§descriptor: FrontendRuntimeDescriptorRuntime description captured at attachment time.
history: Vec<ChatMessage>Bounded canonical history through history_cursor.
history_cursor: u64Highest event sequence represented by history.
replay: VecDeque<FrontendEvent>Events after the canonical history boundary and before the response.
Trait Implementations§
Source§impl Clone for FrontendAttachSnapshot
impl Clone for FrontendAttachSnapshot
Source§fn clone(&self) -> FrontendAttachSnapshot
fn clone(&self) -> FrontendAttachSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrontendAttachSnapshot
impl Debug for FrontendAttachSnapshot
Source§impl<'de> Deserialize<'de> for FrontendAttachSnapshot
impl<'de> Deserialize<'de> for FrontendAttachSnapshot
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 FrontendAttachSnapshot
impl PartialEq for FrontendAttachSnapshot
Source§impl Serialize for FrontendAttachSnapshot
impl Serialize for FrontendAttachSnapshot
impl StructuralPartialEq for FrontendAttachSnapshot
Auto Trait Implementations§
impl Freeze for FrontendAttachSnapshot
impl RefUnwindSafe for FrontendAttachSnapshot
impl Send for FrontendAttachSnapshot
impl Sync for FrontendAttachSnapshot
impl Unpin for FrontendAttachSnapshot
impl UnsafeUnpin for FrontendAttachSnapshot
impl UnwindSafe for FrontendAttachSnapshot
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