#[non_exhaustive]pub struct TimedEvent {
pub at: Timestamp,
pub agent: AgentPath,
pub event: AgentEvent,
}Expand description
An AgentEvent with the UTC time it was emitted and the agent that
emitted it.
The time is taken at the emission point inside the run, not when the consumer reads the event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at: TimestampWhen the agent emitted the event.
agent: AgentPathWhich agent emitted it: the main agent, or a subagent whose events are forwarded on its parent’s stream.
event: AgentEventThe event itself.
Implementations§
Source§impl TimedEvent
impl TimedEvent
Sourcepub fn now(agent: AgentPath, event: AgentEvent) -> Self
pub fn now(agent: AgentPath, event: AgentEvent) -> Self
An event emitted now by agent, for a ChildAgent
that lives outside this crate.
Trait Implementations§
Source§impl Clone for TimedEvent
impl Clone for TimedEvent
Auto Trait Implementations§
impl !RefUnwindSafe for TimedEvent
impl !UnwindSafe for TimedEvent
impl Forget for TimedEvent
impl Freeze for TimedEvent
impl Move for TimedEvent
impl Send for TimedEvent
impl Sync for TimedEvent
impl Unpin for TimedEvent
impl UnsafeUnpin for TimedEvent
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