Add download lifecycle controls
This commit is contained in:
@@ -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 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user