pub struct LogEntry {
pub timestamp: i64,
pub message: String,
pub level: String,
}Fields§
§timestamp: i64§message: String§level: StringImplementations§
Source§impl LogEntry
impl LogEntry
pub fn new(timestamp: i64, message: String, level: String) -> Self
pub fn serialize(&self, buffer: &mut WriteBuffer) -> usize
pub fn deserialize(buffer: &ReadBuffer) -> Self
Trait Implementations§
impl Eq for LogEntry
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnwindSafe for LogEntry
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