pub fn from_bytes<T>(message: T) -> serde_json::Result<Self>
    where
        T: AsRef<[u8]>,
    {
        serde_json::from_slice(message.as_ref())
    }
/// Creates a ClientMessage from an array of bytes
Creates a ClientMessage from an array of bytes
Creates a ClientMessage from an array of bytes
pub fn from_bytes<T>(message: T) -> serde_json::Result<Self>
    where
        T: AsRef<[u8]>,
    {
        serde_json::from_slice(message.as_ref())
    }
pub fn from_bytes < T > ( message : T ) -> serde_json :: Result < Self > where T : AsRef < [ u8 ] > , { serde_json :: from_slice ( message . as_ref ( ) ) }
Creates a ClientMessage from an array of bytes
Creates a ClientMessage from an array of bytes
message
T
message
T