Trait websocket::sync::stream::Splittable [−][src]
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.
Associated Types
type Reader: Read
[src]
The reading component of this type
type Writer: Write
[src]
The writing component of this type
Required methods
pub fn split(self) -> Result<(Self::Reader, Self::Writer), Error>
[src]
Split apart this type into a reading and writing component.
Implementors
impl Splittable for TcpStream
[src]
type Reader = TcpStream
type Writer = TcpStream
pub fn split(self) -> Result<(TcpStream, TcpStream), Error>
[src]
impl<R, W> Splittable for ReadWritePair<R, W> where
R: Read,
W: Write,
[src]
R: Read,
W: Write,