Layout

Trait Layout 

Source
pub trait Layout:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn format(
        &self,
        record: &Record<'_>,
        diags: &[Box<dyn Diagnostic>],
    ) -> Result<Vec<u8>, Error>;
}
Expand description

A layout for formatting log records.

Required Methods§

Source

fn format( &self, record: &Record<'_>, diags: &[Box<dyn Diagnostic>], ) -> Result<Vec<u8>, Error>

Format a log record with optional diagnostics.

Trait Implementations§

Source§

impl<T: Layout> From<T> for Box<dyn Layout>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.

Implementors§