pub type BatchCommitFunc = Box<dyn FnOnce(Vec<MessageDisposition>) -> BoxFuture<'static, Result<()>> + Send + 'static>;
A closure for committing a batch of messages.
pub struct BatchCommitFunc(/* private fields */);