rework select_folder error handling (thanks @flub and @link2xt for helping along)

This commit is contained in:
holger krekel
2019-11-29 09:46:38 +01:00
committed by Floris Bruynooghe
parent 74a4691f29
commit 2dbef704e9
2 changed files with 109 additions and 68 deletions

View File

@@ -54,6 +54,12 @@ pub enum Error {
ImapInTeardown,
#[fail(display = "No IMAP Connection established")]
ImapNoConnection,
/*
#[fail(display = "IMAP Connection lost: {:?}", _0)]
ImapConnectionLost(String),
#[fail(display = "Failed to obtain Imap Session")]
CouldNotObtainImapSession,
*/
}
pub type Result<T> = std::result::Result<T, Error>;