You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postsack/src/database/db_message.rs

15 lines
394 B
Rust

use eyre::Report;
use crate::importer::EmailEntry;
/// Parameter for sending work to the database during `import`.
pub enum DBMessage {
/// Send for a successfuly parsed mail
Mail(Box<EmailEntry>),
/// Send for any kind of error during reading / parsing
Error(Report),
/// Send once all parsing is done.
/// This is used to break out of the receiving loop
Done,
}