Trait RemoveMessages

Source
pub trait RemoveMessages: Send + Sync {
    // Required method
    fn remove_messages<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        folder: &'life1 str,
        id: &'life2 Id,
    ) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Feature to remove message(s).

Required Methods§

Source

fn remove_messages<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, folder: &'life1 str, id: &'life2 Id, ) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Remove messages from the given folder matching the given envelope id(s).

This function definitely remove message(s). If you are looking for its soft version, see super::delete::DeleteMessages.

Implementors§