diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2021-09-02 13:14:36 +0200 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2021-09-02 13:14:36 +0200 |
commit | 0454e2a1cdc4c8db90944fc7dbf1069c6d32555d (patch) | |
tree | 790ab5a4a5b2c45b64ded83a6464f78ac4b5cc0a /src/main.rs | |
parent | b9e4631ff453098f80a4acbd3d23540a4fe565ba (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.rs | 8 |
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)] |