Skip to main content

process_binary

Function process_binary 

Source
pub fn process_binary<ExchangeMessage>(
    payload: Bytes,
) -> Option<Result<ExchangeMessage, SocketError>>
where ExchangeMessage: for<'de> Deserialize<'de>,
Expand description

Process a payload of Vec<u8> bytes by deserialising into an ExchangeMessage.