pub enum SessionEvent {
SessionStarted(SessionInfo),
OutputLine {
session_id: String,
entry: LogEntry,
},
Diagnostic {
session_id: String,
diagnostic: DiagnosticRecord,
},
ArtifactBuilt {
session_id: String,
artifact: ArtifactRecord,
},
SessionFinished(SessionFinished),
ProcessDetected(DetectedProcess),
ProcessUpdated(DetectedProcess),
ProcessGone {
session_id: String,
pid: u32,
observed_at: OffsetDateTime,
},
}Expand description
Unified event stream emitted by the app’s runtime services.
Variants§
SessionStarted(SessionInfo)
Managed or detected session created.
OutputLine
Output line observed.
Diagnostic
Structured diagnostic observed.
Fields
§
diagnostic: DiagnosticRecordStructured diagnostic payload.
ArtifactBuilt
Artifact built.
Fields
§
artifact: ArtifactRecordProduced artifact metadata.
SessionFinished(SessionFinished)
Session finished.
ProcessDetected(DetectedProcess)
External process first observed.
ProcessUpdated(DetectedProcess)
External process changed status.
ProcessGone
External process vanished.
Trait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Source§fn clone(&self) -> SessionEvent
fn clone(&self) -> SessionEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionEvent
impl Debug for SessionEvent
Source§impl<'de> Deserialize<'de> for SessionEvent
impl<'de> Deserialize<'de> for SessionEvent
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 SessionEvent
impl PartialEq for SessionEvent
Source§impl Serialize for SessionEvent
impl Serialize for SessionEvent
impl Eq for SessionEvent
impl StructuralPartialEq for SessionEvent
Auto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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