Trait Attachment

Source
pub trait Attachment: Sized {
    // Required method
    fn attachment(self, label: &'static str, msg: impl Display) -> Self;
}
Expand description

Exposes ErrorMessage::attachment as a trait to allow ResultExt::attachment.

Required Methods§

Source

fn attachment(self, label: &'static str, msg: impl Display) -> Self

Attaches an additional message to self reusing the same span, and the specified label.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§