Struct fluvio_smartmodule::SmartModuleRecord
source · pub struct SmartModuleRecord { /* private fields */ }
Expand description
Wrapper on Record
that provides access to the base offset and timestamp
Implementations§
Methods from Deref<Target = Record>§
sourcepub fn get_header(&self) -> &RecordHeader
pub fn get_header(&self) -> &RecordHeader
return reference to header
sourcepub fn get_mut_header(&mut self) -> &mut RecordHeader
pub fn get_mut_header(&mut self) -> &mut RecordHeader
return mutable reference to header
sourcepub fn add_base_offset(&mut self, relative_base_offset: i64)
pub fn add_base_offset(&mut self, relative_base_offset: i64)
add offset delta with new relative base offset
pub fn timestamp_delta(&self) -> i64
pub fn offset_delta(&self) -> i64
Trait Implementations§
source§impl Clone for SmartModuleRecord
impl Clone for SmartModuleRecord
source§fn clone(&self) -> SmartModuleRecord
fn clone(&self) -> SmartModuleRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SmartModuleRecord
impl Debug for SmartModuleRecord
source§impl Default for SmartModuleRecord
impl Default for SmartModuleRecord
source§fn default() -> SmartModuleRecord
fn default() -> SmartModuleRecord
Returns the “default value” for a type. Read more
source§impl Deref for SmartModuleRecord
impl Deref for SmartModuleRecord
source§impl DerefMut for SmartModuleRecord
impl DerefMut for SmartModuleRecord
source§impl From<SmartModuleRecord> for Record
impl From<SmartModuleRecord> for Record
source§fn from(sm_record: SmartModuleRecord) -> Self
fn from(sm_record: SmartModuleRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SmartModuleRecord
impl Send for SmartModuleRecord
impl Sync for SmartModuleRecord
impl Unpin for SmartModuleRecord
impl UnwindSafe for SmartModuleRecord
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