Skip to main content

CommitFunc

Type Alias CommitFunc 

Source
pub type CommitFunc = Box<dyn FnOnce(MessageDisposition) -> BoxFuture<'static, Result<()>> + Send + 'static>;
Expand description

A closure that can be called to commit the message. It returns a BoxFuture to allow for async commit operations.

Aliased Typeยง

pub struct CommitFunc(/* private fields */);