pub trait Encoding {
    // Required method
    fn wrap_bytes(
        bytes: Vec<u8>,
        stats: Arc<LogStreamStats>
    ) -> GenericStoredMessage;
}
Expand description

An Encoding is able to parse a Message from raw bytes.

Required Methods§

source

fn wrap_bytes( bytes: Vec<u8>, stats: Arc<LogStreamStats> ) -> GenericStoredMessage

Attempt to parse a message from the given buffer

Object Safety§

This trait is not object safe.

Implementors§