tokio

crate

Rustの非同期ランタイム

spawn

let handle: tokio::JoinHandle<T> = tokio::spawn(async move {
  process(socket).await;
});
let result = handle.await?;
  • bytes クレート. Arc<Vec<u8>> Vec<u8> に対してshallow copy提供する

Mutex

channel

Stream