Crate barter_integration
source · [−]Modules
Custom SocketErrors generated by an ExchangeStream and ExchangeSink.
! # Barter-Integration
! Contains an ExchangeStream capable of acting as a [Stream] for a given remote server, and a ExchangeSink
! capable of acting [Sink] for a given remote server.
Foundational data structures that define the building blocks used by the rest of the Barter
ecosystem.
Contains ProtocolParser implementations for transforming communication protocol specific
messages into a generic output data structure.
Structs
Generic event generated by an ExchangeStream. Contains a monotonically increasing
sequence number to support determining event order from the socket.
Todo:
An ExchangeStream is a communication protocol agnostic [Stream]. It polls protocol
messages from the inner [Stream], and transforms them into the desired output data structure.
Traits
Transformers are capable of transforming any Input into an iterator of
Result<Output, SocketError>s.