pub enum SessionWatchEvent {
SessionSnapshot {
sequence: u64,
reason: SessionSnapshotReason,
session: Box<Session>,
},
MessagesAppended {
sequence: u64,
session_id: Option<String>,
messages: Vec<ChatMessage>,
},
WatchError {
sequence: u64,
message: String,
},
}Expand description
A normalized event emitted while following a local session.
Variants§
SessionSnapshot
A complete normalized view of the selected session.
Fields
§
reason: SessionSnapshotReasonWhy the full snapshot was necessary.
MessagesAppended
Messages appended without changing existing normalized history.
Fields
§
messages: Vec<ChatMessage>Newly appended normalized messages.
WatchError
A recoverable read or parse problem. The follower remains usable.
Implementations§
Trait Implementations§
Source§impl Clone for SessionWatchEvent
impl Clone for SessionWatchEvent
Source§fn clone(&self) -> SessionWatchEvent
fn clone(&self) -> SessionWatchEvent
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 moreAuto Trait Implementations§
impl Freeze for SessionWatchEvent
impl RefUnwindSafe for SessionWatchEvent
impl Send for SessionWatchEvent
impl Sync for SessionWatchEvent
impl Unpin for SessionWatchEvent
impl UnsafeUnpin for SessionWatchEvent
impl UnwindSafe for SessionWatchEvent
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