Trait websocket_base::stream::sync::Splittable
source · [−]pub trait Splittable {
type Reader: Read;
type Writer: Write;
fn split(self) -> Result<(Self::Reader, Self::Writer)>;
}
Expand description
some streams can be split up into separate reading and writing components
TcpStream
is an example. This trait marks this ability so one can split
up the client into two parts.
Notice however that this is not possible to do with SSL.