Skip to main content

LogRecord

Trait LogRecord 

Source
pub trait LogRecord {
    // Required methods
    fn task_id(&self) -> i64;
    fn category(&self) -> &str;
    fn what(&self) -> &str;
    fn details(&self) -> &str;
    fn set_details(&mut self, new_details: String);
    fn severity(&self) -> &str;

    // Provided method
    fn debug(&self, f: &mut Formatter<'_>) -> Result { ... }
}
Expand description

Log actor trait, assumes already Identifiable (for id())

Required Methods§

Source

fn task_id(&self) -> i64

Owner Task’s id accessor

Source

fn category(&self) -> &str

Category accessor

Source

fn what(&self) -> &str

What accessor

Source

fn details(&self) -> &str

Details accessor

Source

fn set_details(&mut self, new_details: String)

Details setter

Source

fn severity(&self) -> &str

Severity accessor

Provided Methods§

Source

fn debug(&self, f: &mut Formatter<'_>) -> Result

Implements the fmt::Debug fmt

Trait Implementations§

Source§

impl Debug for dyn LogRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for dyn LogRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§