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

Function deserialize_from_stream

source
pub async fn deserialize_from_stream(
    reader: &mut OwnedReadHalf,
) -> Result<WrappedServerMessage, NanoServiceError>
Expand description

Deserializes a server message from a stream of bytes.

§Arguments

  • reader: the stream of bytes to be deserialized

§Returns

the deserialized server message