Struct logid::id_entry::LogIdEntry

source ·
pub struct LogIdEntry {
    pub id: LogId,
    pub level: EventLevel,
    pub msg: String,
    pub infos: Vec<String>,
    pub debugs: Vec<String>,
    pub traces: Vec<String>,
    pub origin: Origin,
    pub span: &'static str,
    /* private fields */
}
Expand description

Structure to capture all messages set for a log-id.

Fields

id: LogId

The log-id of this entry

level: EventLevel

The level of the log-id of this entry

msg: String

The main message set when creating the log-id entry

infos: Vec<String>

List of additional informations for this log-id entry

debugs: Vec<String>

List of additional debug informations for this log-id entry

traces: Vec<String>

List of additional trace information for this log-id entry

origin: Origin

Code position where the log-id entry was created

span: &'static str

Name of the span that was current when the log-id event was set

Implementations

Returns true if the entry is safe to drain. Meaning that no more additional information is added to this entry.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more