Trait ws_tool::codec::Split

source ·
pub trait Split {
    type R;
    type W;

    // Required method
    fn split(self) -> (Self::R, Self::W);
}
Expand description

split something into two parts

Required Associated Types§

source

type R

read half type

source

type W

write half type

Required Methods§

source

fn split(self) -> (Self::R, Self::W)

consume and return parts

Implementations on Foreign Types§

source§

impl Split for TcpStream

§

type R = TcpStream

§

type W = TcpStream

source§

fn split(self) -> (Self::R, Self::W)

Implementors§

source§

impl<R, W, S> Split for WsStream<S>where R: Read, W: Write, S: Read + Write + Split<R = R, W = W>,

§

type R = ReadStream<R>

§

type W = WsWriteStream<W>

source§

impl<S, R, W> Split for BufStream<S>where R: Read, W: Write, S: Read + Write + Split<R = R, W = W> + Debug,

§

type R = BufReader<R>

§

type W = BufWriter<W>