pub struct Attachments { /* private fields */ }Implementations§
Source§impl Attachments
impl Attachments
pub fn new() -> Self
pub fn add_attachment<K>(
&mut self,
key: AttachmentKey,
value: Box<dyn Any + Send>,
)where
K: Send + 'static,
pub fn attachment<K>(&self, key: AttachmentKey) -> Option<&K>where
K: Send + 'static,
pub fn attachment_mut<K>(&mut self, key: AttachmentKey) -> Option<&mut K>where
K: Send + 'static,
Auto Trait Implementations§
impl !RefUnwindSafe for Attachments
impl !Sync for Attachments
impl !UnwindSafe for Attachments
impl Freeze for Attachments
impl Send for Attachments
impl Unpin for Attachments
impl UnsafeUnpin for Attachments
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