diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-17 08:22:15 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-17 08:22:15 +0100 |
commit | 3d23f0c936516ed89f2888fb44babb3994e8d579 (patch) | |
tree | 79315188155cfe91d5cc5c98b3c6ead17d8f2e15 /src/imap/response.rs | |
parent | 55e26d24a08519ded6a6898453dcd6db287f45c8 (diff) | |
download | aerogramme-3d23f0c936516ed89f2888fb44babb3994e8d579.tar.gz aerogramme-3d23f0c936516ed89f2888fb44babb3994e8d579.zip |
WIP refactor idle
Diffstat (limited to 'src/imap/response.rs')
-rw-r--r-- | src/imap/response.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imap/response.rs b/src/imap/response.rs index d20e58e..a9978e1 100644 --- a/src/imap/response.rs +++ b/src/imap/response.rs @@ -3,6 +3,7 @@ use imap_codec::imap_types::command::Command; use imap_codec::imap_types::core::Tag; use imap_codec::imap_types::response::{Code, Data, Status}; +#[derive(Debug)] pub enum Body<'a> { Data(Data<'a>), Status(Status<'a>), @@ -88,6 +89,7 @@ impl<'a> ResponseBuilder<'a> { } } +#[derive(Debug)] pub struct Response<'a> { pub body: Vec<Body<'a>>, pub completion: Status<'a>, @@ -110,3 +112,9 @@ impl<'a> Response<'a> { }) } } + +#[derive(Debug)] +pub enum ResponseOrIdle { + Response(Response<'static>), + Idle, +} |