pub struct YantrikCodec;Expand description
Tokio codec for YantrikDB wire protocol frames.
Handles length-delimited framing with the Frame encode/decode logic.
Implementations§
Source§impl YantrikCodec
impl YantrikCodec
Trait Implementations§
Source§impl Debug for YantrikCodec
impl Debug for YantrikCodec
Source§impl Decoder for YantrikCodec
impl Decoder for YantrikCodec
Source§type Error = ProtocolError
type Error = ProtocolError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for YantrikCodec
impl Default for YantrikCodec
Source§fn default() -> YantrikCodec
fn default() -> YantrikCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for YantrikCodec
impl RefUnwindSafe for YantrikCodec
impl Send for YantrikCodec
impl Sync for YantrikCodec
impl Unpin for YantrikCodec
impl UnsafeUnpin for YantrikCodec
impl UnwindSafe for YantrikCodec
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