小弧光的博客

公众号:小弧光黑板报

导航

2022年12月9日 #

rust tokio 使用

摘要: 1、 主函数使用 new 一个 Runtime: let rt = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap(); rt.block_on(async move { // some task wit 阅读全文

posted @ 2022-12-09 15:33 小弧光 阅读(761) 评论(0) 推荐(0) 编辑

2022年12月7日 #

为什么 egui 用立即模式?

摘要: https://github.com/emilk/egui#why-immediate-mode 为什么立即模式 egui是立即模式 GUI 库,与保留模式GUI 库相对。保留模式和立即模式之间的区别最好用按钮的例子来说明:在保留的 GUI 中,您创建一个按钮,将其添加到某些 UI 并安装一些单击处 阅读全文

posted @ 2022-12-07 17:30 小弧光 阅读(1929) 评论(0) 推荐(0) 编辑

2022年12月6日 #

ChatGPT 编写的 Rust 二叉树

摘要: // 定义二叉树节点 struct Node { // 节点值 value: i32, // 左子树 left: Option<Box<Node>>, // 右子树 right: Option<Box<Node>>, } // 定义二叉树 struct BinaryTree { // 根节点 roo 阅读全文

posted @ 2022-12-06 09:49 小弧光 阅读(142) 评论(0) 推荐(0) 编辑

2022年12月5日 #

tokio file.rs

摘要: mirrors.ustc.edu.cn-12df342d903acd47/tokio-1.21.2/src/fs/file.rs //! Types for working with [`File`]. //! //! [`File`]: File use self::State::*; use c 阅读全文

posted @ 2022-12-05 10:57 小弧光 阅读(37) 评论(0) 推荐(0) 编辑

2022年12月1日 #

Rust Cell and RefCell

摘要: https://blog.iany.me/2019/02/rust-cell-and-refcell/ Rust Cell and RefCell In Rust document, Cell is “A mutable memory location”, and RefCell is “A mut 阅读全文

posted @ 2022-12-01 16:02 小弧光 阅读(42) 评论(1) 推荐(0) 编辑

2022年11月28日 #

unftp源码分析

摘要: unftp源码分析 https://github.com/bolcom/unFTP // starts the FTP server as a Tokio task. fn start_ftp( log: &Logger, root_log: &Logger, m: &clap::ArgMatche 阅读全文

posted @ 2022-11-28 11:48 小弧光 阅读(37) 评论(0) 推荐(0) 编辑

2022年11月24日 #

个人图床的最终抉择

摘要: https://www.antmoe.com/posts/3f5daa8e/ 这篇文章已经发表了 35 天了,其中某些内容可能已经过时。 个人自用图床简史 在最开始,我自用的图床为阿里云 oss+CloudFlare。通过宽带联盟的好处,可以获得免回源流量,因此使用 oss 的成本为请求数 + 存储 阅读全文

posted @ 2022-11-24 11:25 小弧光 阅读(206) 评论(0) 推荐(0) 编辑

把cloudflare变成你的专属免费图床

摘要: https://wlnxing.com/archives/49.html 前言 cloudflare作为一个免费的cdn,一直受到大家的喜爱.作为一个国外的cdn,使用他家的cdn服务域名不用备案,并且在国内使用的速度也不错,基本上是国内一些域名没有备案的博主的cdn首选.他的免费计划基本上也够用了 阅读全文

posted @ 2022-11-24 11:23 小弧光 阅读(291) 评论(0) 推荐(0) 编辑

2022年11月23日 #

Install and Configure Samba Server on Ubuntu 22.04/20.04 for File Sharing

摘要: https://www.linuxbabe.com/ubuntu/install-samba-server-file-share In this tutorial, we’re going to learn how to install and configure a Samba server on 阅读全文

posted @ 2022-11-23 16:18 小弧光 阅读(222) 评论(0) 推荐(0) 编辑

Samba共享文件折腾记

摘要: 原文:https://be-my-only.xyz/blog/CentOS-sharing-folder/#ssh445 结合Samba与SSH隧道技术实现Windows与CentOS间在校园网跨网段环境下共享文件。 前言 Samba是Linux与Windows间常用的文件共享方案。不同于PuTTY 阅读全文

posted @ 2022-11-23 15:57 小弧光 阅读(574) 评论(0) 推荐(0) 编辑