Spec-Zone.ru › Tokio

Function duplex

pub fn duplex(max_buf_size: usize) -> (DuplexStream, DuplexStream)
Available on crate feature io-util only.

Create a new pair of DuplexStreams that act like a pair of connected sockets.

The max_buf_size argument is the maximum amount of bytes that can be written to a side before the write returns Poll::Pending.

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

Spec-Zone.ru

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