pub enum Event {
Show 14 variants
DownloadStarted {
id: String,
filename: String,
url: String,
total_size: Option<u64>,
resumed_bytes: u64,
connections: usize,
parallel: bool,
},
RangeStarted {
index: u64,
start: u64,
end: u64,
},
BytesWritten {
index: u64,
bytes: u64,
},
RangeCompleted {
index: u64,
},
RangeSplit {
index: u64,
new_index: u64,
at: u64,
},
RetryScheduled {
index: Option<u64>,
attempt: u32,
delay_ms: u64,
reason: String,
},
Checkpointed {
durable_bytes: u64,
},
DownloadPaused {
downloaded: u64,
total_size: Option<u64>,
},
VerificationStarted {
algorithm: String,
total_size: u64,
},
VerificationProgress {
bytes: u64,
total_size: u64,
},
VerificationCompleted {
algorithm: String,
ok: bool,
expected: Option<String>,
actual: String,
},
DownloadCompleted {
downloaded: u64,
elapsed_ms: u64,
average_bps: u64,
},
DownloadFailed {
error: String,
},
Note {
level: NoteLevel,
message: String,
},
}Variants§
DownloadStarted
Fields
RangeStarted
BytesWritten
RangeCompleted
RangeSplit
RetryScheduled
Checkpointed
A committer barrier completed: this many bytes are now durable.
DownloadPaused
VerificationStarted
VerificationProgress
VerificationCompleted
DownloadCompleted
DownloadFailed
Note
Human-facing note that is not a lifecycle transition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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