aboutsummaryrefslogtreecommitdiff
path: root/src/imap/response.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-17 16:56:05 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-17 16:56:05 +0100
commite1161cab0e71ec604e376d2d87f7d1226f3f0244 (patch)
tree54cc16089536d3451bb1602b5830844e9bb9c4cb /src/imap/response.rs
parent4a15ceacf1f45b15ae9b926110f48447c258ba1c (diff)
downloadaerogramme-e1161cab0e71ec604e376d2d87f7d1226f3f0244.tar.gz
aerogramme-e1161cab0e71ec604e376d2d87f7d1226f3f0244.zip
idle sync
Diffstat (limited to 'src/imap/response.rs')
-rw-r--r--src/imap/response.rs4
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>>),
}