pub struct DaemonObserver { /* private fields */ }Expand description
Per-thread observer wired up by the session’s observer factory.
Event fan-out and state updates happen synchronously in
on_event — the runtime invokes it at the
exact emission point and handles subscriber attachment on the same task,
so each event is either reflected in the replay snapshot a new subscriber
receives or broadcast to it afterwards, never both.
Trait Implementations§
Source§impl ThreadObserver for DaemonObserver
impl ThreadObserver for DaemonObserver
Source§type SubscribeRequest = SubscribeRequest
type SubscribeRequest = SubscribeRequest
The attach-request type routed to running threads (see
RunningSystem::subscribe).
Embeddings that do not use the local driver can use ().Source§fn on_event(&self, thread_id: &ThreadId<str>, event: &AgentEvent)
fn on_event(&self, thread_id: &ThreadId<str>, event: &AgentEvent)
A display event was emitted. Called synchronously at the emission
point; keep this fast (fan-out, buffering).
Source§fn on_subscribe(
&self,
thread_id: &ThreadId<str>,
request: SubscribeRequest,
snapshot: ReplaySnapshot,
)
fn on_subscribe( &self, thread_id: &ThreadId<str>, request: SubscribeRequest, snapshot: ReplaySnapshot, )
A subscriber attached to a running thread (local driver mode only;
step-mode embeddings never receive this call). Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DaemonObserver
impl !UnwindSafe for DaemonObserver
impl Freeze for DaemonObserver
impl Send for DaemonObserver
impl Sync for DaemonObserver
impl Unpin for DaemonObserver
impl UnsafeUnpin for DaemonObserver
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