Enum error_stack::AttachmentKind
source · #[non_exhaustive]
pub enum AttachmentKind<'f> {
Opaque(&'f (dyn Send + Sync + 'static)),
Printable(&'f dyn Printable),
}
Expand description
Classification of an attachment which is determined by the method it was created in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Opaque(&'f (dyn Send + Sync + 'static))
A generic attachment created through attach()
.
Printable(&'f dyn Printable)
A printable attachment created through attach_printable()
.