pub struct AiLogRecord {
pub timestamp: SystemTime,
pub session: Option<SessionKey>,
pub level: AiLogLevel,
pub source: AiLogSource,
pub message: String,
}Expand description
One log entry. Cheap to clone (Arc<str> for the session’s
provider name; the message is a plain String).
Fields§
§timestamp: SystemTimeWall-clock time of emission. Used for buffer rendering; not load-bearing for ordering (records preserve insertion order in their ring).
session: Option<SessionKey>None for subsystem-wide records (supervisor events).
level: AiLogLevel§source: AiLogSource§message: StringTrait Implementations§
Source§impl Clone for AiLogRecord
impl Clone for AiLogRecord
Source§fn clone(&self) -> AiLogRecord
fn clone(&self) -> AiLogRecord
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 moreAuto Trait Implementations§
impl Freeze for AiLogRecord
impl RefUnwindSafe for AiLogRecord
impl Send for AiLogRecord
impl Sync for AiLogRecord
impl Unpin for AiLogRecord
impl UnsafeUnpin for AiLogRecord
impl UnwindSafe for AiLogRecord
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
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