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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CompatExt for T
impl<T> CompatExt for T
fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Applies the [
Compat
] adapter by shared reference. Read morefn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [
Compat
] adapter by mutable reference. Read more