Struct fluvio::dataplane::batch::Batch [−][src]
Fields
base_offset: i64
batch_len: i32
header: BatchHeader
records: R
Implementations
impl<R> Batch<R> where
R: BatchRecords,
[src]
R: BatchRecords,
pub fn get_mut_header(&mut self) -> &mut BatchHeader
[src]
pub fn get_header(&self) -> &BatchHeader
[src]
pub fn get_base_offset(&self) -> i64
[src]
pub fn set_base_offset(&mut self, offset: i64)
[src]
pub fn base_offset(self, offset: i64) -> Batch<R>
[src]
pub fn set_offset_delta(&mut self, delta: i32)
[src]
pub fn get_last_offset(&self) -> i64
[src]
pub fn get_last_offset_delta(&self) -> u32
[src]
get last offset delta
pub fn decode_from_file_buf<T>(
&mut self,
src: &mut T,
version: i16
) -> Result<(), Error> where
T: Buf,
[src]
&mut self,
src: &mut T,
version: i16
) -> Result<(), Error> where
T: Buf,
decode from buf stored in the file read all excluding records
impl Batch<Vec<Record<DefaultAsyncBuffer>, Global>>
[src]
pub fn add_record(&mut self, record: Record<DefaultAsyncBuffer>)
[src]
add new record, this will update the offset to correct
Trait Implementations
impl<R> Debug for Batch<R> where
R: Debug + BatchRecords,
[src]
R: Debug + BatchRecords,
impl<R> Decoder for Batch<R> where
R: BatchRecords,
[src]
R: BatchRecords,
pub fn decode<T>(&mut self, src: &mut T, version: i16) -> Result<(), Error> where
T: Buf,
[src]
T: Buf,
pub fn decode_from<T>(src: &mut T, version: i16) -> Result<Self, Error> where
Self: Default,
T: Buf,
Self: Default,
T: Buf,
impl<R> Default for Batch<R> where
R: Default + BatchRecords,
[src]
R: Default + BatchRecords,
impl<R> Encoder for Batch<R> where
R: BatchRecords,
[src]
R: BatchRecords,
Auto Trait Implementations
impl<R> RefUnwindSafe for Batch<R> where
R: RefUnwindSafe,
[src]
R: RefUnwindSafe,
impl<R> Send for Batch<R> where
R: Send,
[src]
R: Send,
impl<R> Sync for Batch<R> where
R: Sync,
[src]
R: Sync,
impl<R> Unpin for Batch<R> where
R: Unpin,
[src]
R: Unpin,
impl<R> UnwindSafe for Batch<R> where
R: UnwindSafe,
[src]
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,