Struct AiLogPushed
pub struct AiLogPushed {
pub timestamp: SystemTime,
pub session: Option<SessionKey>,
pub level: String,
pub source: String,
pub message: String,
}Expand description
The typed event fired on every successful append. Analogue of
lattice_lsp::events::LspLogPushed.
Fields§
§timestamp: SystemTimeWall-clock time of emission, carried so a live-tailing buffer
renders the same timestamp the record will show once it is
replayed from history by a later :ai-log.
session: Option<SessionKey>None for subsystem-wide records; Some(key) per-session.
level: StringSeverity tag ("trace", "debug", "info", "warn",
"error").
source: StringSource tag ("client", "agent", "reason", "tool",
"life").
message: StringThe record’s message text.
Trait Implementations§
§impl Clone for AiLogPushed
impl Clone for AiLogPushed
§fn clone(&self) -> AiLogPushed
fn clone(&self) -> AiLogPushed
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 more§impl Debug for AiLogPushed
impl Debug for AiLogPushed
§impl Event for AiLogPushed
impl Event for AiLogPushed
§fn event_type_id(&self) -> EventTypeId
fn event_type_id(&self) -> EventTypeId
The type-id under which this event is registered.
Implementors typically delegate to a
static to avoid
re-allocating the metadata on every call. The macro
register_event! generates this for you.Auto Trait Implementations§
impl Freeze for AiLogPushed
impl RefUnwindSafe for AiLogPushed
impl Send for AiLogPushed
impl Sync for AiLogPushed
impl Unpin for AiLogPushed
impl UnsafeUnpin for AiLogPushed
impl UnwindSafe for AiLogPushed
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.