running-process-platform-internal 4.10.10

Blessed platform process operations for running-process (implementation detail)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Portable local-socket relay for Windows named pipes.

use crate::platform_win::ipc::AsyncStream;

/// Relay a pair of established local sockets through Tokio's bounded buffers.
pub async fn relay_local_socket_session(
    mut client: AsyncStream,
    mut daemon: AsyncStream,
) -> std::io::Result<()> {
    tokio::io::copy_bidirectional(&mut client, &mut daemon).await?;
    Ok(())
}