email/folder/list/
mod.rs

1pub mod config;
2#[cfg(feature = "imap")]
3pub mod imap;
4#[cfg(feature = "maildir")]
5pub mod maildir;
6#[cfg(feature = "notmuch")]
7pub mod notmuch;
8
9use async_trait::async_trait;
10
11use super::Folders;
12use crate::AnyResult;
13
14#[async_trait]
15pub trait ListFolders: Send + Sync {
16    /// List all available folders (alias mailboxes).
17    async fn list_folders(&self) -> AnyResult<Folders>;
18}