Skip to main content

Label

Trait Label 

Source
pub trait Label {
    // Required method
    fn label(&self) -> &str;
}
Expand description

Short label for a transfer item (e.g. a filename), used by Outcome’s Display impl to render log lines. Implement it on your meta type M to get Display for the outcomes carrying it.

Required Methods§

Source

fn label(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§