[][src]Struct kf_protocol_api::Record

pub struct Record<B> where
    B: Default
{ pub preamble: RecordHeader, pub key: B, pub value: B, pub headers: i64, }

Fields

preamble: RecordHeaderkey: Bvalue: Bheaders: i64

Implementations

impl<B> Record<B> where
    B: Default
[src]

pub fn get_offset_delta(&self) -> Offset[src]

pub fn get_value(&self) -> &B[src]

pub fn value(self) -> B[src]

Trait Implementations

impl<B> Debug for Record<B> where
    B: AsyncBuffer + Debug + Default
[src]

impl<B> Decoder for Record<B> where
    B: Decoder
[src]

impl<B: Default> Default for Record<B> where
    B: Default
[src]

impl<B> Encoder for Record<B> where
    B: Encoder + Default
[src]

impl<B> From<String> for Record<B> where
    B: From<String> + Default
[src]

impl<B> From<Vec<u8>> for Record<B> where
    B: From<Vec<u8>> + Default
[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Record<B> where
    B: RefUnwindSafe

impl<B> Send for Record<B> where
    B: Send

impl<B> Sync for Record<B> where
    B: Sync

impl<B> Unpin for Record<B> where
    B: Unpin

impl<B> UnwindSafe for Record<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.