Add download lifecycle controls

This commit is contained in:
2026-05-07 21:36:39 -04:00
parent f93943ccfe
commit 0ed8c09395
5 changed files with 261 additions and 3 deletions
+6
View File
@@ -10,4 +10,10 @@ pub enum DomainError {
#[error("invalid command query")]
InvalidCommand,
#[error("cannot {action} download while state is {state}")]
InvalidDownloadTransition { action: &'static str, state: &'static str },
#[error("download progress {received_bytes} exceeds total {total_bytes}")]
InvalidDownloadProgress { received_bytes: u64, total_bytes: u64 },
}