pub struct MessageBatch {
pub buffer: Bytes,
pub messages: Vec<(usize, usize)>,
pub ids: Vec<Arc<MessageId>>,
}
Expand description
Zero-copy message batch for efficient bulk processing
Fields§
§buffer: Bytes
Contiguous buffer containing all messages
messages: Vec<(usize, usize)>
Offsets and lengths of individual messages
ids: Vec<Arc<MessageId>>
Shared message IDs
Implementations§
Source§impl MessageBatch
impl MessageBatch
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MessageBatch
impl RefUnwindSafe for MessageBatch
impl Send for MessageBatch
impl Sync for MessageBatch
impl Unpin for MessageBatch
impl UnwindSafe for MessageBatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more