surrealcs_kernel::messages::serialization::bincode_processes::message

Function serialize_server_message

source
pub fn serialize_server_message(
    wrapped_message: &WrappedServerMessage,
) -> Result<Vec<u8>, NanoServiceError>
Expand description

Serializes a server message into bytes using bincode.

§Arguments

  • wrapped_message: the message to be serialized

§Returns

a vector of bytes representing the serialized message