Trait barter_integration::socket::protocol::ProtocolParser
source · [−]pub trait ProtocolParser {
type ProtocolMessage;
fn parse<Output>(
input: Self::ProtocolMessage
) -> Option<Result<Output, SocketError>>
where
Output: DeserializeOwned;
}Expand description
ProtocolParsers are capable of parsing the input messages from a given protocol (eg WebSocket,
Financial Information eXchange, etc) and deserialising into an Output.