Skip to main content

ModelLoggingCategory

Trait ModelLoggingCategory 

Source
pub trait ModelLoggingCategory:
    Display
    + FromStr
    + Ord
    + Copy
    + Default {
    // Required methods
    fn all_categories() -> impl Iterator<Item = Self>;
    fn trace_category() -> Self;
    fn error_category() -> Self;
}

Required Methods§

Source

fn all_categories() -> impl Iterator<Item = Self>

Return an iterator over all possible logging categories

Source

fn trace_category() -> Self

Get the category for tracing FMI API calls

Source

fn error_category() -> Self

Get the category for logging errors

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§