fn advance_state(
state: &mut Box<dyn DirState>,
attempt_id: AttemptId,
) -> Result<(), AdvanceStateError>Expand description
Advances the progress of the directory download.
Returns Ok(()) if the state was successfully advanced.
ยงErrors
- Returns
AdvanceStateError::AlreadyCompleteif the directory has already been fully downloaded. - Returns
AdvanceStateError::CantAdvanceYetif the directory is incomplete and the download cannot advance yet.