email/folder/delete/mod.rs
1#[cfg(feature = "imap")]
2pub mod imap;
3#[cfg(feature = "maildir")]
4pub mod maildir;
5
6use async_trait::async_trait;
7
8use crate::AnyResult;
9
10#[async_trait]
11pub trait DeleteFolder: Send + Sync {
12 /// Definitely delete the given folder.
13 ///
14 /// Manipulate with caution: all emails contained in the given
15 /// folder are also definitely deleted.
16 async fn delete_folder(&self, folder: &str) -> AnyResult<()>;
17}