summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-09-02 13:14:36 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2021-09-02 13:14:36 +0200
commit0454e2a1cdc4c8db90944fc7dbf1069c6d32555d (patch)
tree790ab5a4a5b2c45b64ded83a6464f78ac4b5cc0a /src/main.rs
parentb9e4631ff453098f80a4acbd3d23540a4fe565ba (diff)
asyncjob supports sending arbitrary notifications
this is used to send progress reports during work on the job
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 8e59dd44..83974175 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -77,9 +77,15 @@ pub enum QueueEvent {
}
#[derive(Clone, Copy, Debug, PartialEq)]
+pub enum SyntaxHighlightProgress {
+ Progress(asyncgit::ProgressPercent),
+ Done,
+}
+
+#[derive(Clone, Copy, Debug, PartialEq)]
pub enum AsyncAppNotification {
///
- SyntaxHighlighting,
+ SyntaxHighlighting(SyntaxHighlightProgress),
}
#[derive(Clone, Copy, Debug, PartialEq)]