[−][src]Struct kf_protocol::api::Record
Fields
preamble: RecordHeader
key: B
value: B
headers: i64
Implementations
impl<B> Record<B> where
B: Default,
[src]
B: Default,
pub fn get_offset_delta(&self) -> i64
[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]
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: i16) -> Result<(), Error> where
T: Buf,
[src]
T: Buf,
fn decode_from<T>(src: &mut T, version: i16) -> Result<Self, Error> where
Self: Default,
T: Buf,
[src]
Self: Default,
T: Buf,
impl<B> 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: i16) -> usize
[src]
fn encode<T>(&self, dest: &mut T, version: i16) -> Result<(), Error> where
T: BufMut,
[src]
T: BufMut,
fn as_bytes(&self, version: i16) -> Result<Bytes, Error>
[src]
impl<B> From<String> for Record<B> where
B: From<String> + Default,
[src]
B: From<String> + Default,
impl<B> From<Vec<u8>> 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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
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>,