上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 111 下一页
摘要: 环境 Time 2022-01-15 Rust 1.58.0 Tokio 1.15.0 Hyper 0.14.16 概念 参考:https://hyper.rs/guides/server/graceful-shutdown/ 示例 main.rs use futures::TryStreamExt 阅读全文
posted @ 2022-04-27 15:58 jiangbo4444 阅读(164) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-15 Rust 1.58.0 Tokio 1.15.0 Hyper 0.14.16 概念 参考:https://hyper.rs/guides/client/advanced/ 示例 main.rs use std::error::Error; use hyper:: 阅读全文
posted @ 2022-04-27 15:57 jiangbo4444 阅读(478) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-15 Rust 1.58.0 Tokio 1.15.0 Hyper 0.14.16 概念 参考:https://hyper.rs/guides/client/basic/ 示例 main.rs use std::error::Error; use hyper::{bo 阅读全文
posted @ 2022-04-27 15:56 jiangbo4444 阅读(148) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-15 Rust 1.58.0 Tokio 1.15.0 Hyper 0.14.16 概念 参考:https://hyper.rs/guides/server/echo/ 示例 main.rs use futures::TryStreamExt; use hyper:: 阅读全文
posted @ 2022-04-27 15:56 jiangbo4444 阅读(106) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-15 Rust 1.58.0 Tokio 1.15.0 Hyper 0.14.16 概念 参考:https://docs.rs/hyper/latest/hyper/server/index.html 示例 main.rs use hyper::service::{m 阅读全文
posted @ 2022-04-27 15:54 jiangbo4444 阅读(162) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-14 Rust 1.58.0 Tokio 1.15.0 概念 参考:https://docs.rs/tokio/latest/tokio/macro.select.html 示例 main.rs use std::time::Duration; use tokio:: 阅读全文
posted @ 2022-03-31 18:33 jiangbo4444 阅读(130) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-14 Rust 1.58.0 Tokio 1.15.0 概念 参考:https://docs.rs/tokio/latest/tokio/macro.join.html 示例 main.rs use std::time::Duration; use tokio::ti 阅读全文
posted @ 2022-03-31 18:32 jiangbo4444 阅读(496) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-13 Rust 1.57.0 Tokio 1.15.0 概念 参考:https://tokio.rs/tokio/topics/shutdown 示例 server use bytes::Bytes; use mini_redis::Command::{Get, Se 阅读全文
posted @ 2022-03-31 18:31 jiangbo4444 阅读(213) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-13 Rust 1.57.0 Tokio 1.15.0 概念 参考:https://tokio.rs/tokio/tutorial/channels 示例 Cargo.toml [package] edition = "2021" name = "game" vers 阅读全文
posted @ 2022-03-31 18:29 jiangbo4444 阅读(320) 评论(0) 推荐(0)
摘要: 环境 Time 2022-01-13 Rust 1.57.0 Tokio 1.15.0 概念 参考:https://tokio.rs/tokio/tutorial/shared-state 如果使用 #[tokio::main(flavor = "current_thread")] 单线程模型就不需 阅读全文
posted @ 2022-03-31 18:28 jiangbo4444 阅读(171) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 111 下一页