Spec-Zone.ru › Tokio

Function split

pub fn split<T>(stream: T) -> (ReadHalf<T>, WriteHalf<T>)
where T: AsyncRead + AsyncWrite,
Available on crate feature io-util only.

Splits a single value implementing AsyncRead + AsyncWrite into separate AsyncRead and AsyncWrite handles.

To restore this read/write object from its ReadHalf and WriteHalf use unsplit.

MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/io/fn.split.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API