#[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()
.
Auto Trait Implementations§
impl<'f> Freeze for AttachmentKind<'f>
impl<'f> !RefUnwindSafe for AttachmentKind<'f>
impl<'f> Send for AttachmentKind<'f>
impl<'f> Sync for AttachmentKind<'f>
impl<'f> Unpin for AttachmentKind<'f>
impl<'f> !UnwindSafe for AttachmentKind<'f>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more