pub trait PayloadBatch<'buf> {
// Required methods
fn next_payload(&mut self) -> Option<RawPayload<'buf>>;
fn ack(&self) -> &AckRef;
}Expand description
Required Methods§
Sourcefn next_payload(&mut self) -> Option<RawPayload<'buf>>
fn next_payload(&mut self) -> Option<RawPayload<'buf>>
The next payload, or None when the batch is exhausted.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".