Trait manyhow::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.

Object Safety§

This trait is not object safe.

Implementors§