feat(scanner): add scanner budget progress controls (#3185)

Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
Henry Guo
2026-06-03 22:37:58 +08:00
committed by GitHub
parent f49827fc58
commit ad1a489f75
13 changed files with 1346 additions and 189 deletions
+6
View File
@@ -14,6 +14,8 @@
use thiserror::Error;
use crate::data_usage_define::DataUsageCache;
/// Scanner-related errors
#[derive(Error, Debug)]
#[non_exhaustive]
@@ -33,4 +35,8 @@ pub enum ScannerError {
/// Generic error
#[error("Scanner error: {0}")]
Other(String),
/// Partial data usage cache produced before the scanner stopped.
#[error("Scanner stopped with partial data usage cache")]
PartialCache(Box<DataUsageCache>),
}