2024年8月18日

摘要: demo #[tokio::main] async fn main() { println!("Hello world"); } Equivalent code not using #[tokio::main] fn main() { tokio::runtime::Builder::new_mul 阅读全文
posted @ 2024-08-18 23:00 winter-loo 阅读(10) 评论(0) 推荐(0) 编辑
摘要: principle https://doc.rust-lang.org/reference/types/closure.html?highlight=fnonce#closure-types demo 1 fn f<F : FnOnce() -> String> (g: F) { println!( 阅读全文
posted @ 2024-08-18 04:13 winter-loo 阅读(4) 评论(0) 推荐(0) 编辑

导航