pub struct ObservedEvent {
pub session_id: Arc<SessionId>,
pub event: AgentEvent,
}Expand description
Session-addressed AgentEvent envelope delivered to LoopObservers.
Some event variants carry their own session fields, but many high-volume
events intentionally stay compact. The envelope gives shared observers a
consistent routing key without reshaping every AgentEvent variant.
Fields§
§session_id: Arc<SessionId>Session this event belongs to.
event: AgentEventThe operational event emitted by the driver.
Trait Implementations§
Source§impl Clone for ObservedEvent
impl Clone for ObservedEvent
Source§fn clone(&self) -> ObservedEvent
fn clone(&self) -> ObservedEvent
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 ObservedEvent
impl Debug for ObservedEvent
Source§impl PartialEq for ObservedEvent
impl PartialEq for ObservedEvent
Source§fn eq(&self, other: &ObservedEvent) -> bool
fn eq(&self, other: &ObservedEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObservedEvent
Auto Trait Implementations§
impl Freeze for ObservedEvent
impl RefUnwindSafe for ObservedEvent
impl Send for ObservedEvent
impl Sync for ObservedEvent
impl Unpin for ObservedEvent
impl UnsafeUnpin for ObservedEvent
impl UnwindSafe for ObservedEvent
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