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