程序君的 Rust 培训(2)
喜欢历史的程序君:
时间线
0:00:小贝弹 Merry Dance
1:00: 回顾第一讲 - copy & move,Drop 顺序,Size/DST,测试,Pin 以及常见 trait
38:06:网络协议
46:35:Live coding - kv store(基于 tokio)
1:54:19:服务端应用,GRPC,tower-service 和 tonic
2:02:08:Live coding - PoW 服务
3:20:46:网络安全 - DH,Noise protocol
3:29:51:Live coding - 使用 noise protocol 增强 kv store 的安全性
4:29:34:P2P 应用的一般结构
4:38:14:宏编程简述(敬请期待下一期 Rust 培训)
刘钥:
感谢陈天老师,感觉不光给我们讲了很多Rust的知识,整个人温文尔雅的状态也让人学了很多[给心心]
喜欢历史的程序君:
其中 4:27:08 处因为时间关系没有完成的优化,可以看这个 PR 的详细介绍:https://github.com/tyrchen/rust-training/pull/8
implacebo:
你好,请问 live coding 中的参数自动补全,有灰色的提示,像 `out_dir(path: "src/pb")`
这样的代码,参数 path 是自动补全的,且有不同颜色的高亮,请问这个是怎么配置的
SharkninjaChina:
大佬, 能规划一期rust leetcode专场吗. 很期待大佬的课程!
爱哲学的小男孩:
请教大神,这种报错我知道可以加'static 约束,有没有方法将x对象传入 spawn时候向编译器保证它有'static trait bound 而不在T的trait bound加入 'static,具体链接:https://rustcc.cn/article?id=a5049d1b-1993-456b-b0fa-f981e49f58f2