pub trait StreamFactory { type Stream; // Required method fn create(&mut self) -> Self::Stream; }
Trait for creating streams, used by the stream pool to generate streams as needed.
The type of stream produced by this factory.
Creates a new stream instance.