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