Trait barter_integration::socket::protocol::ProtocolParser
source · [−]pub trait ProtocolParser<Output> where
Output: DeserializeOwned, {
type Input;
fn parse(input: Self::Input) -> Option<Result<Output, SocketError>>;
}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.