pub struct Entry<E> {
pub content: EntryContent<E>,
pub timestamp: i64,
/* private fields */
}Expand description
Entry containing an Error of type E or an log message
Fields§
§content: EntryContent<E>Content of the entry
timestamp: i64Timestamp when the event occurred
Implementations§
Source§impl<E> Entry<E>
impl<E> Entry<E>
Sourcepub fn get_level(&self) -> LevelFilter
pub fn get_level(&self) -> LevelFilter
Get level
Returns LevelFilter::Error or the level of the Message
Sourcepub fn new_message(level: LevelFilter, message: String) -> Self
pub fn new_message(level: LevelFilter, message: String) -> Self
Create Entry of type Error
Source§impl<E: Debug + Display> Entry<E>
impl<E: Debug + Display> Entry<E>
Sourcepub fn get_message(&self, mode: &FormatMode) -> String
pub fn get_message(&self, mode: &FormatMode) -> String
Get message as String
Sourcepub fn get_message_filter(
&self,
mode: &FormatMode,
max_level: &LevelFilter,
) -> Option<String>
pub fn get_message_filter( &self, mode: &FormatMode, max_level: &LevelFilter, ) -> Option<String>
Get Message as String filtering based on given LevelFilter
Trait Implementations§
Source§impl<E: Ord> Ord for Entry<E>
impl<E: Ord> Ord for Entry<E>
Source§impl<E: PartialOrd> PartialOrd for Entry<E>
impl<E: PartialOrd> PartialOrd for Entry<E>
impl<E: Eq> Eq for Entry<E>
impl<E> StructuralPartialEq for Entry<E>
Auto Trait Implementations§
impl<E> !Freeze for Entry<E>
impl<E> !RefUnwindSafe for Entry<E>
impl<E> Send for Entry<E>where
E: Send,
impl<E> !Sync for Entry<E>
impl<E> Unpin for Entry<E>where
E: Unpin,
impl<E> UnwindSafe for Entry<E>where
E: 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