diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-17 16:56:05 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-17 16:56:05 +0100 |
commit | e1161cab0e71ec604e376d2d87f7d1226f3f0244 (patch) | |
tree | 54cc16089536d3451bb1602b5830844e9bb9c4cb /src/imap/response.rs | |
parent | 4a15ceacf1f45b15ae9b926110f48447c258ba1c (diff) | |
download | aerogramme-e1161cab0e71ec604e376d2d87f7d1226f3f0244.tar.gz aerogramme-e1161cab0e71ec604e376d2d87f7d1226f3f0244.zip |
idle sync
Diffstat (limited to 'src/imap/response.rs')
-rw-r--r-- | src/imap/response.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imap/response.rs b/src/imap/response.rs index 7b7f92d..afcb29f 100644 --- a/src/imap/response.rs +++ b/src/imap/response.rs @@ -1,4 +1,6 @@ +use std::sync::Arc; use anyhow::Result; +use tokio::sync::Notify; use imap_codec::imap_types::command::Command; use imap_codec::imap_types::core::Tag; use imap_codec::imap_types::response::{Code, Data, Status}; @@ -116,6 +118,6 @@ impl<'a> Response<'a> { #[derive(Debug)] pub enum ResponseOrIdle { Response(Response<'static>), - StartIdle, + StartIdle(Arc<Notify>), IdleEvent(Vec<Body<'static>>), } |