pub struct TypedAttachment<T> {
pub content: T,
pub attachment_type: AttachmentType,
}Fields§
§content: T§attachment_type: AttachmentTypeTrait Implementations§
Source§impl<T> IntoAttachment for TypedAttachment<T>where
T: IntoAttachment,
impl<T> IntoAttachment for TypedAttachment<T>where
T: IntoAttachment,
fn into_bytes(self) -> Vec<u8> ⓘ
fn attachment_type(&self) -> AttachmentType
Auto Trait Implementations§
impl<T> Freeze for TypedAttachment<T>where
T: Freeze,
impl<T> RefUnwindSafe for TypedAttachment<T>where
T: RefUnwindSafe,
impl<T> Send for TypedAttachment<T>where
T: Send,
impl<T> Sync for TypedAttachment<T>where
T: Sync,
impl<T> Unpin for TypedAttachment<T>where
T: Unpin,
impl<T> UnsafeUnpin for TypedAttachment<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TypedAttachment<T>where
T: UnwindSafe,
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