Struct fluvio_smartmodule::dataplane::record::RecordSet
source · Expand description
Represents sets of batches in storage
Fields
batches: Vec<Batch<R>, Global>Implementations
sourceimpl<R> RecordSet<R>where
R: BatchRecords,
impl<R> RecordSet<R>where
R: BatchRecords,
pub fn add(self, batch: Batch<R>) -> RecordSet<R>
sourcepub fn last_offset(&self) -> Option<i64>
pub fn last_offset(&self) -> Option<i64>
this is next offset to be fetched
sourcepub fn total_records(&self) -> usize
pub fn total_records(&self) -> usize
total records
sourcepub fn base_offset(&self) -> i64
pub fn base_offset(&self) -> i64
return base offset
Trait Implementations
sourceimpl<R> Decoder for RecordSet<R>where
R: BatchRecords,
impl<R> Decoder for RecordSet<R>where
R: BatchRecords,
sourceimpl<R> Encoder for RecordSet<R>where
R: BatchRecords,
impl<R> Encoder for RecordSet<R>where
R: BatchRecords,
sourceimpl TryFrom<RecordSet<Vec<Record<RecordData>, Global>>> for RecordSet<RawRecords>
impl TryFrom<RecordSet<Vec<Record<RecordData>, Global>>> for RecordSet<RawRecords>
type Error = CompressionError
type Error = CompressionError
The type returned in the event of a conversion error.
sourcefn try_from(
set: RecordSet<Vec<Record<RecordData>, Global>>
) -> Result<RecordSet<RawRecords>, <RecordSet<RawRecords> as TryFrom<RecordSet<Vec<Record<RecordData>, Global>>>>::Error>
fn try_from(
set: RecordSet<Vec<Record<RecordData>, Global>>
) -> Result<RecordSet<RawRecords>, <RecordSet<RawRecords> as TryFrom<RecordSet<Vec<Record<RecordData>, Global>>>>::Error>
Performs the conversion.
Auto Trait Implementations
impl<R> RefUnwindSafe for RecordSet<R>where
R: RefUnwindSafe,
impl<R> Send for RecordSet<R>where
R: Send,
impl<R> Sync for RecordSet<R>where
R: Sync,
impl<R> Unpin for RecordSet<R>where
R: Unpin,
impl<R> UnwindSafe for RecordSet<R>where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more