barter_integration::protocol::websocket

Function process_binary

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

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