01 2022 档案
摘要:Rust Trick 之 Trait Object 转换为 Struct 在C/C++里面,trait通常是以父类的形式出现的,父类转换为子类通常直接可以通过指针类型的转换就可以完成,当然C++也可以通过cast完成。 在rust里面当然也可以一切通过raw pointer来完成,但是我觉得在rus
阅读全文
摘要:Part1 The WebSocket Protocol by IFTF Design Philosophy Conceptually, WebSocket is really just a layer on top of TCP that does the following: adds a we
阅读全文