pub struct FluvioCodec {}
Expand description
Implement Fluvio Encoding First 4 bytes are size of the message. Then total buffer = 4 + message content
Implementations§
Source§impl FluvioCodec
impl FluvioCodec
Trait Implementations§
Source§impl Debug for FluvioCodec
impl Debug for FluvioCodec
Source§impl Decoder for FluvioCodec
impl Decoder for FluvioCodec
Source§fn decode(
&mut self,
bytes: &mut BytesMut,
) -> Result<Option<BytesMut>, Self::Error>
fn decode( &mut self, bytes: &mut BytesMut, ) -> Result<Option<BytesMut>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for FluvioCodec
impl Default for FluvioCodec
Source§fn default() -> FluvioCodec
fn default() -> FluvioCodec
Returns the “default value” for a type. Read more
Source§impl<T: FluvioEncoder> Encoder<(T, i16)> for FluvioCodec
Implement encoder for Fluvio Codec
impl<T: FluvioEncoder> Encoder<(T, i16)> for FluvioCodec
Implement encoder for Fluvio Codec
Source§impl Encoder<Bytes> for FluvioCodec
Implement encoder for Fluvio Codec
This is straight pass thru, actual encoding is done file slice
impl Encoder<Bytes> for FluvioCodec
Implement encoder for Fluvio Codec This is straight pass thru, actual encoding is done file slice
Auto Trait Implementations§
impl Freeze for FluvioCodec
impl RefUnwindSafe for FluvioCodec
impl Send for FluvioCodec
impl Sync for FluvioCodec
impl Unpin for FluvioCodec
impl UnwindSafe for FluvioCodec
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