client_command_to_entry_payloads

Function client_command_to_entry_payloads 

Source
pub fn client_command_to_entry_payloads(
    commands: Vec<WriteCommand>,
) -> Vec<EntryPayload>
Expand description

Converts a vector of client WriteCommands into a vector of EntryPayloads. Each WriteCommand is serialized into bytes and wrapped in an EntryPayload::Command variant.

§Arguments

  • commands - A vector of WriteCommand to be converted

§Returns

A vector of EntryPayload containing the serialized commands