pub unsafe fn split<T>(io: T) -> (OwnedReadHalf<T>, OwnedWriteHalf<T>)
Expand description

Split an io into read half and write half.

Safety

User must make sure the io r/w can be done at the same time.