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