Enum deltachat::imex::transfer::ReceiveProgress
source · enum ReceiveProgress {
Connected,
CollectionReceived,
BlobProgress(u16),
Completed,
Failed,
}
Expand description
Create EventType::ImexProgress
events using readable names.
Plus you get warnings if you don’t use all variants.
Variants§
Connected
CollectionReceived
BlobProgress(u16)
A value between 0 and 85 interpreted as a percentage.
Other values are already used by the other variants of this enum.
Completed
Failed
Implementations§
source§impl ReceiveProgress
impl ReceiveProgress
sourcefn max_blob_progress() -> u16
fn max_blob_progress() -> u16
The maximum value for ReceiveProgress::BlobProgress
.
This only exists to keep this magic value local in this type.
Trait Implementations§
source§impl Debug for ReceiveProgress
impl Debug for ReceiveProgress
source§impl From<ReceiveProgress> for EventType
impl From<ReceiveProgress> for EventType
source§fn from(source: ReceiveProgress) -> Self
fn from(source: ReceiveProgress) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ReceiveProgress
impl Send for ReceiveProgress
impl Sync for ReceiveProgress
impl Unpin for ReceiveProgress
impl UnwindSafe for ReceiveProgress
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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