pub enum DaemonEvent {
Snapshot {
version: u32,
snapshot: SessionSnapshotData,
runtime: RuntimeViewData,
},
Patch {
version: u32,
patch: SessionPatch,
},
Notification {
version: u32,
title: String,
message: String,
},
}Expand description
Unsolicited host → client frame. Distinguished from a response by the
event key.
Variants§
Snapshot
Full session state; also pushed right after attach with the same
window as the response.
Patch
Incremental session state.
Notification
Owner-directed message. An empty title with content is promoted into the transcript by clients; a titled one is a transient notice.
Implementations§
Trait Implementations§
Source§impl Clone for DaemonEvent
impl Clone for DaemonEvent
Source§impl Debug for DaemonEvent
impl Debug for DaemonEvent
Source§impl<'de> Deserialize<'de> for DaemonEvent
impl<'de> Deserialize<'de> for DaemonEvent
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 DaemonEvent
impl PartialEq for DaemonEvent
Source§impl Serialize for DaemonEvent
impl Serialize for DaemonEvent
impl StructuralPartialEq for DaemonEvent
Auto Trait Implementations§
impl Forget for DaemonEvent
impl Freeze for DaemonEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ReasoningLabel>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SessionEntry>: Freeze,
PhantomData<QueuedMessage>: Freeze,
PhantomData<ReasoningVariant>: Freeze,
PhantomData<IndexedEntry>: Freeze,
PhantomData<TextDelta>: Freeze,
impl Move for DaemonEvent
impl RefUnwindSafe for DaemonEvent
impl Send for DaemonEvent
impl Sync for DaemonEvent
impl Unpin for DaemonEvent
impl UnsafeUnpin for DaemonEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ReasoningLabel>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SessionEntry>: UnsafeUnpin,
PhantomData<QueuedMessage>: UnsafeUnpin,
PhantomData<ReasoningVariant>: UnsafeUnpin,
PhantomData<IndexedEntry>: UnsafeUnpin,
PhantomData<TextDelta>: UnsafeUnpin,
impl UnwindSafe for DaemonEvent
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