Trait barter_integration::socket::Transformer
source · [−]pub trait Transformer<Output> {
type Input;
type OutputIter: IntoIterator<Item = Result<Output, SocketError>>;
fn transform(&mut self, input: Self::Input) -> Self::OutputIter;
}Expand description
Transformers are capable of transforming any Input into an iterator of
Result<Output, SocketError>s.