Registry / networking / tokio-pipe

tokio-pipe

JSON →
library0.2.12rscratesunverified

Asynchronous pipe(2) library using tokio.

# Cargo.toml [dependencies] tokio-pipe = "0.2.12"
INSTALL
IMPORT
SIG · TOKIO-PIPE
T
tokio-pipe
networkingrustv0.2.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pipe
use tokio_pipe::Pipe;

Creates a pipe and performs async read/write.

use tokio_pipe::Pipe; #[tokio::main] async fn main() { let (mut reader, mut writer) = Pipe::new(); writer.write(b"hello").await.unwrap(); let mut buf = [0u8; 5]; reader.read(&mut buf).await.unwrap(); println!("Read: {:?}", buf); }
Debug
Known issues
gotchaRequires tokio runtime
fix
Ensure you are using #[tokio::main] or similar runtime.
affects: >=0.1.0
Upgrade
Version history
0.2.12latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
32
OpenAI (training)
1
Resources
tokio-pipe — cargo add tokio-pipe · libregistry