Struct fluvio_dataplane_protocol::record::Record [−][src]
Fields
preamble: RecordHeaderkey: Option<B>value: Bheaders: i64Implementations
impl<B> Record<B> where
B: Default, [src]
B: Default,
pub fn get_offset_delta(&self) -> Offset[src]
pub fn add_base_offset(&mut self, relative_base_offset: Offset)[src]
add offset delta with new relative base offset
pub fn value(&self) -> &B[src]
Returns a reference to the inner value
pub fn key(&self) -> Option<&B>[src]
Returns a reference to the inner key if it exists
pub fn into_value(self) -> B[src]
Consumes this record, returning the inner value
pub fn into_key(self) -> Option<B>[src]
Consumes this record, returning the inner key if it esists
impl Record<DefaultAsyncBuffer>[src]
pub fn new<V>(value: V) -> Self where
V: Into<Vec<u8>>, [src]
V: Into<Vec<u8>>,
pub fn new_key_value<K, V>(key: K, value: V) -> Self where
K: Into<Vec<u8>>,
V: Into<Vec<u8>>, [src]
K: Into<Vec<u8>>,
V: Into<Vec<u8>>,
Trait Implementations
impl<B> Debug for Record<B> where
B: AsyncBuffer + Debug + Default, [src]
B: AsyncBuffer + Debug + Default,
impl<B> Decoder for Record<B> where
B: Decoder, [src]
B: Decoder,
fn decode<T>(&mut self, src: &mut T, version: Version) -> 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<B: Default> Default for Record<B> where
B: Default, [src]
B: Default,
impl<B> Encoder for Record<B> where
B: Encoder + Default, [src]
B: Encoder + Default,
fn write_size(&self, version: Version) -> usize[src]
fn encode<T>(&self, dest: &mut T, version: Version) -> Result<(), Error> where
T: BufMut, [src]
T: BufMut,
pub fn as_bytes(&self, version: i16) -> Result<Bytes, Error>
impl<'a, B> From<&'a [u8]> for Record<B> where
B: From<&'a [u8]> + Default, [src]
B: From<&'a [u8]> + Default,
impl<B: Default> From<(Option<B>, B)> for Record<B>[src]
impl<B> From<String> for Record<B> where
B: From<String> + Default, [src]
B: From<String> + Default,
impl<B> From<Vec<u8, Global>> for Record<B> where
B: From<Vec<u8>> + Default, [src]
B: From<Vec<u8>> + Default,
Auto Trait Implementations
impl<B> RefUnwindSafe for Record<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Record<B> where
B: Send,
B: Send,
impl<B> Sync for Record<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Record<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Record<B> where
B: UnwindSafe,
B: 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> 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, 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>,