Skip to main content

StatusFactory

Trait StatusFactory 

Source
pub trait StatusFactory<S: Status>: Send + Sync {
    // Required methods
    fn group(&self) -> S;
    fn success(&self) -> S;
    fn failure(&self) -> S;
}
Expand description

A trait that is responsible for creating statuses.

This trait can be implemented to customize the statuses used in the console output.

Required Methods§

Source

fn group(&self) -> S

Creates a status for a group.

Source

fn success(&self) -> S

Creates a status for a success.

Source

fn failure(&self) -> S

Creates a status for a failure.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§