Skip to main content

Module codec

Module codec 

Source

Traits§

FrameCodec
Composite trait for types that implement both FrameRead and FrameWrite with the same error type.
FrameRead
Decodes Self from a zero-copy buffer cursor.
FrameWrite
Encodes Self into a Writer.
Writer
Abstraction over alloc and no-alloc write targets.

Functions§

take_n
Consumes exactly n bytes from the cursor, returning a zero-copy slice.