上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 164 下一页

2020年12月24日

摘要: cat src/main.rs use std::rc::Rc; struct Owner { name: String, // ...other fields } struct Gadget { id: i32, owner: Rc<Owner>, // ...other fields } fn 阅读全文
posted @ 2020-12-24 16:53 tycoon3 阅读(220) 评论(0) 推荐(0)
摘要: 高级编程 https://learnku.com/docs/nomicon/2018/33-life-cycle/4714 rust-by-example- http://llever.com/rust-by-example-cn/variable_bindings/mut.html 箱子、栈和堆 阅读全文
posted @ 2020-12-24 16:13 tycoon3 阅读(318) 评论(0) 推荐(0)
摘要: cat src/main.rs fn main() { let x= String::from("42"); let y=x; println!("value of x :{}",x); } cargo build Compiling own v0.1.0 (/data2/rust/own) war 阅读全文
posted @ 2020-12-24 15:58 tycoon3 阅读(449) 评论(0) 推荐(0)
摘要: demo1 fn main() { let a = 5; let b = &a; if a == *b { println!("Equal"); } else { println!("Not equal"); } } cargo run Finished dev [unoptimized + deb 阅读全文
posted @ 2020-12-24 15:16 tycoon3 阅读(179) 评论(0) 推荐(0)
摘要: Anbox 实现分析 3:会话管理器与容器管理器的通信 Anbox源码分析 https://blog.csdn.net/qq_36383272/category_9934190.html Anbox 实现分析之 I/O 模型 https://blog.csdn.net/tq08g2z/article 阅读全文
posted @ 2020-12-24 10:08 tycoon3 阅读(999) 评论(0) 推荐(0)

2020年12月23日

摘要: [root@localhost vxlan]# make /data1/dpdk-19.11/mk/internal/rte.extvars.mk:29: *** Cannot find .config in /data1/dpdk-19.11/ . Stop. [root@localhost vx 阅读全文
posted @ 2020-12-23 19:40 tycoon3 阅读(935) 评论(0) 推荐(0)
摘要: 原来没有实现udp_tunnel_port_add接口 net_hinic: Disable promiscuous, nic_dev: hinic-0000:05:00.0, port_id: 0, promisc: 0 net_hinic: Disable allmulticast succee 阅读全文
posted @ 2020-12-23 19:22 tycoon3 阅读(284) 评论(0) 推荐(0)
摘要: https://github.com/bytedance/ovs-dpdk/blob/80e2a22dda73e5d30be5de025572a418cc722632/lib/netdev-offload-dpdk-flow.c const struct netdev_flow_api netdev 阅读全文
posted @ 2020-12-23 17:03 tycoon3 阅读(370) 评论(0) 推荐(0)
摘要: 智能指针是一类数据结构 智能指针 拥有 指向的内存,而 引用 只是 借用 智能指针 实现了 Deref 和 Drop 两个trait Box<T>,用于在堆上分配值 <=> 对应 C++ 的 std::unique_ptr Rc<T>,一个引用计数类型,其数据可以有多个所有者 <=> 对应 C++ 阅读全文
posted @ 2020-12-23 16:43 tycoon3 阅读(189) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/SweeNeil/article/details/89640206 阅读全文
posted @ 2020-12-23 11:54 tycoon3 阅读(266) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 164 下一页

导航