pub enum ResumableEvent {
Started {
direction: TransferDirection,
url: String,
total: Option<u64>,
resumed_from: u64,
},
Advanced {
done: u64,
total: Option<u64>,
},
Reconnecting {
done: u64,
attempt: u32,
},
Finished {
done: u64,
resumed_from: u64,
},
}Expand description
Progress of a resumable transfer, reported through
Progress::resumable_transfer.
Variants§
Started
The transfer began. resumed_from is how many bytes an earlier attempt
had already moved (zero for a fresh transfer).
Fields
§
direction: TransferDirectionDownload or upload.
Advanced
More bytes arrived or were accepted.
Fields
Reconnecting
The connection dropped; the transfer is picking up again at done.
Fields
Finished
Every byte is in place.
Trait Implementations§
Source§impl Clone for ResumableEvent
impl Clone for ResumableEvent
Source§impl Debug for ResumableEvent
impl Debug for ResumableEvent
impl Eq for ResumableEvent
Source§impl PartialEq for ResumableEvent
impl PartialEq for ResumableEvent
impl StructuralPartialEq for ResumableEvent
Auto Trait Implementations§
impl Freeze for ResumableEvent
impl RefUnwindSafe for ResumableEvent
impl Send for ResumableEvent
impl Sync for ResumableEvent
impl Unpin for ResumableEvent
impl UnsafeUnpin for ResumableEvent
impl UnwindSafe for ResumableEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.