pub struct ConsoleEntry {
pub level: LogLevel,
pub message: String,
}Expand description
A single console entry containing a message and its log level.
Used to store entries in the global vConsole signal for both browser console output and vConsole panel rendering.
Fields§
§level: LogLevelThe log level determining the entry’s category and display color.
message: StringThe text content of the log message.
Implementations§
Source§impl ConsoleEntry
impl ConsoleEntry
pub fn get_level(&self) -> LogLevel
pub fn get_mut_level(&mut self) -> &mut LogLevel
pub fn set_level(&mut self, val: LogLevel) -> &mut Self
pub fn get_message(&self) -> &String
pub fn get_mut_message(&mut self) -> &mut String
pub fn set_message(&mut self, val: String) -> &mut Self
Trait Implementations§
Source§impl Clone for ConsoleEntry
impl Clone for ConsoleEntry
Source§fn clone(&self) -> ConsoleEntry
fn clone(&self) -> ConsoleEntry
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 moreSource§impl Debug for ConsoleEntry
impl Debug for ConsoleEntry
Source§impl PartialEq for ConsoleEntry
impl PartialEq for ConsoleEntry
Source§fn eq(&self, other: &ConsoleEntry) -> bool
fn eq(&self, other: &ConsoleEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsoleEntry
Auto Trait Implementations§
impl Freeze for ConsoleEntry
impl RefUnwindSafe for ConsoleEntry
impl Send for ConsoleEntry
impl Sync for ConsoleEntry
impl Unpin for ConsoleEntry
impl UnsafeUnpin for ConsoleEntry
impl UnwindSafe for ConsoleEntry
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