pub fn encode<In, Enc>(inp: In, enc: Enc) -> LayeredEncoder<In, Enc>where In: Stream, Enc: Encoder<Item = In::Item>,
Returns a stream that will yield Bytes that are the result of encoding items of the underlying Stream by using the provided [Encoder]