pub struct BatchRef<'a> {
pub header: BatchHeader,
/* private fields */
}Expand description
A decoded batch borrowing its blob.
Fields§
§header: BatchHeaderImplementations§
Source§impl<'a> BatchRef<'a>
impl<'a> BatchRef<'a>
pub const fn new(header: BatchHeader, blob: &'a [u8]) -> Self
pub const fn iter(&self) -> BatchIterator<'a> ⓘ
pub const fn iter_with_offsets(&self) -> BatchIteratorWithOffsets<'a> ⓘ
pub const fn blob(&self) -> &'a [u8] ⓘ
pub const fn message_count(&self) -> u32
Trait Implementations§
impl<'a> Copy for BatchRef<'a>
Source§impl<'a> IntoIterator for &BatchRef<'a>
impl<'a> IntoIterator for &BatchRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for BatchRef<'a>
impl<'a> RefUnwindSafe for BatchRef<'a>
impl<'a> Send for BatchRef<'a>
impl<'a> Sync for BatchRef<'a>
impl<'a> Unpin for BatchRef<'a>
impl<'a> UnsafeUnpin for BatchRef<'a>
impl<'a> UnwindSafe for BatchRef<'a>
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