pub struct LogEntry<Priority> {
pub timestamp: u64,
pub priority: Priority,
pub file: String,
pub line: u32,
pub message: String,
pub counter: u64,
}Expand description
A single log entry.
Fields§
§timestamp: u64The time at which the log entry is recorded.
priority: PriorityThe log entry priority level.
file: StringThe source file in which this log entry was generated.
line: u32The line in file in which this log entry was generated.
message: StringThe log message.
counter: u64The index of this entry starting from the last canister upgrade.
Trait Implementations§
Source§impl<'de, Priority> Deserialize<'de> for LogEntry<Priority>where
Priority: Deserialize<'de>,
impl<'de, Priority> Deserialize<'de> for LogEntry<Priority>where
Priority: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Priority: Eq> Eq for LogEntry<Priority>
impl<Priority> StructuralPartialEq for LogEntry<Priority>
Auto Trait Implementations§
impl<Priority> Freeze for LogEntry<Priority>where
Priority: Freeze,
impl<Priority> RefUnwindSafe for LogEntry<Priority>where
Priority: RefUnwindSafe,
impl<Priority> Send for LogEntry<Priority>where
Priority: Send,
impl<Priority> Sync for LogEntry<Priority>where
Priority: Sync,
impl<Priority> Unpin for LogEntry<Priority>where
Priority: Unpin,
impl<Priority> UnwindSafe for LogEntry<Priority>where
Priority: UnwindSafe,
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