pub enum FetchPhase {
Connecting,
Downloading,
Verifying,
Committing,
Completed,
}Expand description
Phases of a download operation.
Downloads progress through these phases in order: Connecting → Downloading → Verifying → Committing → Completed
Retries return to the Connecting phase.
Variants§
Connecting
Initial state, connection in progress.
This phase is active while establishing the HTTP connection and waiting for the first response bytes.
Downloading
Actively streaming data to disk.
This phase is active while downloading chunks from the server and writing them to the staging file.
Verifying
Computing and verifying checksum.
This phase is active after all bytes are downloaded and the checksum is being finalized and compared (if configured).
Committing
Performing atomic commit of the downloaded file.
This phase is active while moving the staging file to its final destination path.
Completed
Download completed successfully.
This is the terminal state for successful downloads.
Trait Implementations§
Source§impl Clone for FetchPhase
impl Clone for FetchPhase
Source§fn clone(&self) -> FetchPhase
fn clone(&self) -> FetchPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FetchPhase
impl Debug for FetchPhase
Source§impl Default for FetchPhase
impl Default for FetchPhase
Source§fn default() -> FetchPhase
fn default() -> FetchPhase
Source§impl Display for FetchPhase
impl Display for FetchPhase
Source§impl PartialEq for FetchPhase
impl PartialEq for FetchPhase
impl Copy for FetchPhase
impl Eq for FetchPhase
impl StructuralPartialEq for FetchPhase
Auto Trait Implementations§
impl Freeze for FetchPhase
impl RefUnwindSafe for FetchPhase
impl Send for FetchPhase
impl Sync for FetchPhase
impl Unpin for FetchPhase
impl UnsafeUnpin for FetchPhase
impl UnwindSafe for FetchPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.