diff --git a/src/trash.rs b/src/trash.rs index df7f496..51e98c7 100644 --- a/src/trash.rs +++ b/src/trash.rs @@ -8,9 +8,12 @@ use crate::{GmailClient, Result, message_list::MessageList}; // message_list: MessageList, // } -pub(crate) trait Trash { - async fn batch_move_to_trash(&self) -> Result<()>; - async fn batch_trash(&self) -> Result<()>; +/// Methods for GmailClient to batch move messages to trash +pub trait Trash { + /// Batch move to trash + fn batch_move_to_trash(&self) -> impl std::future::Future> + Send; + /// Batch trash + fn batch_trash(&self) -> impl std::future::Future> + Send; } impl Trash for GmailClient {