split

Function split 

Source
pub fn split<T>(stream: T) -> (ReadHalf<T>, WriteHalf<T>)