pub struct LogEntryParams<'a> {
pub event_type: LogEventType,
pub session_id: Option<&'a [u8; 16]>,
pub level: LogLevel,
pub timestamp: u64,
pub source: Option<&'a str>,
pub service: Option<&'a str>,
pub payload: Option<&'a [u8]>,
}Expand description
Parameters for encoding a single log entry.
Fields§
§event_type: LogEventType§session_id: Option<&'a [u8; 16]>§level: LogLevel§timestamp: u64§source: Option<&'a str>§service: Option<&'a str>§payload: Option<&'a [u8]>Auto Trait Implementations§
impl<'a> Freeze for LogEntryParams<'a>
impl<'a> RefUnwindSafe for LogEntryParams<'a>
impl<'a> Send for LogEntryParams<'a>
impl<'a> Sync for LogEntryParams<'a>
impl<'a> Unpin for LogEntryParams<'a>
impl<'a> UnsafeUnpin for LogEntryParams<'a>
impl<'a> UnwindSafe for LogEntryParams<'a>
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