pub struct LogMessage {
pub level: LogLevel,
pub prefix: String,
pub text: String,
}
Expand description
Details provided to Event::LogMessage
.
Fields§
§level: LogLevel
The level of this log message.
prefix: String
The module prefix, identifies the sender of the message.
As a special case, if the message buffer overflows, this will be set to the string “overflow” (which doesn’t appear as a prefix otherwise), and the text field will contain an informative message.
text: String
The log message. It consists of 1 line of text and is terminated with a newline character.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogMessage
impl RefUnwindSafe for LogMessage
impl Send for LogMessage
impl Sync for LogMessage
impl Unpin for LogMessage
impl UnwindSafe for LogMessage
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