Skip to content

Instantly share code, notes, and snippets.

@saward
saward / main.rs
Created May 15, 2022 15:00
Async Rust based on Tower blog example
use async_std::io::prelude::*;
use async_std::io::Error;
use async_std::net::{TcpListener, TcpStream};
use async_std::prelude::Future;
use async_std::task;
use std::time::Duration;
struct Server {
addr: String,
}