pub struct LogMsg { /* private fields */ }
Trait Implementations§
source§impl EventEntry<LogId, LogMsg> for LogEventEntry
impl EventEntry<LogId, LogMsg> for LogEventEntry
fn new( event_id: LogId, msg: Option<impl Into<LogMsg>>, origin: Origin ) -> LogEventEntry
fn get_event_id(&self) -> &LogId
fn into_event_id(self) -> LogId
fn get_entry_id(&self) -> Uuid
source§fn get_msg(&self) -> Option<&LogMsg>
fn get_msg(&self) -> Option<&LogMsg>
Get the main message that was set when the event entry was created.
fn get_origin(&self) -> &Origin
source§impl Filter<LogId, LogMsg> for FilterConfig
impl Filter<LogId, LogMsg> for FilterConfig
source§fn allow_entry(&self, entry: &impl EventEntry<LogId, LogMsg>) -> bool
fn allow_entry(&self, entry: &impl EventEntry<LogId, LogMsg>) -> bool
Return
true
if the entry is allowed to be captured.source§impl Filter<LogId, LogMsg> for LogFilter
impl Filter<LogId, LogMsg> for LogFilter
source§fn allow_entry(&self, entry: &impl EventEntry<LogId, LogMsg>) -> bool
fn allow_entry(&self, entry: &impl EventEntry<LogId, LogMsg>) -> bool
Return
true
if the entry is allowed to be captured.source§impl IntermediaryEvent<LogId, LogMsg, LogEventEntry> for IntermediaryLogEvent
impl IntermediaryEvent<LogId, LogMsg, LogEventEntry> for IntermediaryLogEvent
fn new( event_id: LogId, msg: Option<impl Into<LogMsg>>, origin: Origin ) -> IntermediaryLogEvent
fn get_entry(&self) -> &LogEventEntry
fn take_entry(&mut self) -> LogEventEntry
§fn get_event_id(&self) -> &K
fn get_event_id(&self) -> &K
Returns the
Id
of this event§fn finalize(self) -> FinalizedEvent<K>
fn finalize(self) -> FinalizedEvent<K>
Finalizing the event sends it to the publisher, and returns the
FinalizedEvent
.
This struct includes the Id
used to set the event, and the id of the specific EventEntry
associated with this event. Read morefn into_event_id(self) -> K
source§impl PartialEq<String> for LogMsg
impl PartialEq<String> for LogMsg
impl Msg for LogMsg
Auto Trait Implementations§
impl RefUnwindSafe for LogMsg
impl Send for LogMsg
impl Sync for LogMsg
impl Unpin for LogMsg
impl UnwindSafe for LogMsg
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