Trait archivist_lib::logs::socket::Encoding
source · 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§
sourcefn wrap_bytes(
bytes: Vec<u8>,
stats: Arc<LogStreamStats>
) -> GenericStoredMessage
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.