pub enum DittoAttachmentFetchEvent {
Completed {
attachment: DittoAttachment,
},
Progress {
downloaded_bytes: u64,
total_bytes: u64,
},
Deleted,
}
Expand description
A representation of the events that can occur in relation to an attachment fetch.
There are three different attachment fetch events: Completed
, Progress
, or Deleted
.
There will be at most one completed
or deleted
event per attachment fetch. There can be many
progress
events delivered for each attachment fetch.
Updates relating to an attachment fetch are delivered by registering a DittoAttachmentFetcher
through a call to fetch_attachment
Variants§
Completed
Fields
§
attachment: DittoAttachment
An attachment fetch event used when the attachment’s download has completed.
Progress
An attachment fetch event used when the attachment’s download has progressed but is not yet complete.
Deleted
An attachment fetch event used when the attachment is deleted.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DittoAttachmentFetchEvent
impl Send for DittoAttachmentFetchEvent
impl Sync for DittoAttachmentFetchEvent
impl Unpin for DittoAttachmentFetchEvent
impl UnwindSafe for DittoAttachmentFetchEvent
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