【Rust日报】2021-12-15 - geoping 由 shodan 开发的多地 ping 工具
awc - 一个基于 actix 生态构建的 HTTP 和 websocket 库
支持http 和 websocket
use actix_rt::System;
use awc::Client;fn main() {System::new().block_on(async {let client = Client::default();let res = client.get("http://www.rust-lang.org") // <- Create request builder.insert_header(("User-Agent", "Actix-web")).send() // <- Send http request.await;println!("Response: {:?}", res); // <- server http response});
}
ReadMore:https://github.com/actix/actix-web/tree/master/awc
sysinfo - 一个用于获取系统信息的库
它目前支持以下操作系统:
安卓
IOS
Linux
macos
树莓派
windows
例子:
use sysinfo::{NetworkExt, NetworksExt, ProcessExt, System, SystemExt};// Please note that we use "new_all" to ensure that all list of
// components, network interfaces, disks and users are already
// filled!
let mut sys = System::new_all();// First we update all information of our `System` struct.
sys.refresh_all();// We display all disks' information:
println!("=> disks:");
for disk in sys.disks() {println!("{:?}", disk);
}// Network interfaces name, data received and data transmitted:
println!("=> networks:");
for (interface_name, data) in sys.networks() {println!("{}: {}/{} B", interface_name, data.received(), data.transmitted());
}// Components temperature:
println!("=> components:");
for component in sys.components() {println!("{:?}", component);
}println!("=> system:");
// RAM and swap information:
println!("total memory: {} KB", sys.total_memory());
println!("used memory : {} KB", sys.used_memory());
println!("total swap : {} KB", sys.total_swap());
println!("used swap : {} KB", sys.used_swap());// Display system information:
println!("System name: {:?}", sys.name());
println!("System kernel version: {:?}", sys.kernel_version());
println!("System OS version: {:?}", sys.os_version());
println!("System host name: {:?}", sys.host_name());// Number of processors:
println!("NB processors: {}", sys.processors().len());// Display processes ID, name na disk usage:
for (pid, process) in sys.processes() {println!("[{}] {} {:?}", pid, process.name(), process.disk_usage());
}
ReadMore:https://github.com/GuillaumeGomez/sysinfo
geoping - shodan开发的多地ping工具
从世界各地的多个位置向指定地址发送 ping 请求。
ReadMore:https://gitlab.com/shodan-public/geonet-rs
From 日报小组 冰山上的 mook && Mike
社区学习交流平台订阅:
Rustcc论坛: 支持rss
微信公众号:Rust语言中文社区
【Rust日报】2021-12-15 - geoping 由 shodan 开发的多地 ping 工具相关推荐
- 假设检验_ t 检验的例子 2021/12/15
参考文档:百度文库里面一些医学实验例子,以及最近外场测试脱网例子 一 单个正态总体 均值u的 t 检验 1.1 单边 解: # -*- coding: utf-8 -*- ""&q ...
- 2021.12.15
开普勒望远镜制作镜筒长度等于物镜焦距与目镜焦距之和.为便于调焦,可以把镜筒分成两节,即物镜镜筒.目镜镜筒.物镜镜筒长度等于物镜焦距,目镜镜筒的长度等于目镜焦距加50-80mm.
- 每日总结(2021/12/15)
今天真的饱受折磨,不过最后感谢lzl学长和我的同学,我终于解决了那几道让我几度想拆电脑的题. 第一道:这道题的格式让我头疼,同时一点思路也没有,还好我同学点拨了一下. 现在有n个元素分别是1,2,3, ...
- 2021.12.15.梦开始的地方.
21岁.重庆 高考581分,现在大四,非985,非211. 数学与应用数学专业,大学就学过c语言. 我的目标是outstanding 程序员.高薪offer.迎娶白富美. 如何学习编程? 学好c语言. ...
- 2021/12/15
认证模块 首先要知道一些基础的知识,写一个空组件要做到以下两步. 第一步, 如果需要页面显示,在router.js对组件进行配置路由. 关于js的知识: import { defineComponen ...
- 2021/12/15 RCE代码和命令执行
小迪 https://www.bilibili.com/video/BV1JZ4y1c7ro?p=29 https://www.cnblogs.com/ermei/p/6689005.html htt ...
- 『金融帝国实验室』(CapLab)官方正版销售指引(2021.12.15)
- 数据挖掘复习资料2021.12.15
数据挖掘 绪论 四种主要技术激发了人们对数据挖掘研究的兴趣: 超大规模数据库的出现,先进的计算机技术.对海量数据的快速访问.统计方法在数据处理领域应用的不断深入 数据挖掘定义: 技术层面:数据挖掘就是 ...
- 【Rust日报】2021-02-16 “火旋风”代码分析器
"火旋风"代码分析器 作者扎克·伯恩斯发布了这款侵入式代码分析器."火旋风"分析器能帮助代码作者测试Rust代码的性能:它能分析项目中的时间敏感部分,输出到时间 ...
最新文章
- 墓志铭:非常了得其实早已死了
- Property 'submit' of object #HTMLFormElement is not a function
- 打包,并自动安装SQL数据库
- ReactiveCocoa源码拆分解析(四)
- [html]如何让元素固定在页面底部?有哪些比较好的实践?
- 7.Working with External Libraries
- 同时安装sql server和oracle导致系统启动变慢的解决方案
- 单元测试 : Googel test测试框架
- 永远做重要而不紧急的事
- 【成功解决】运行qt生成的.exe文件报“无法找到入口”的问题
- mac版python怎么运行_mac 怎么运行python
- github star整理
- win10系统升级后mysql找不到服务及数据消失问题
- 基于SSM的物流信息管理系统(附论文)
- c语言蚂蚁搬,小班语言蚂蚁搬豆教案
- new Foo().getName()经典面试题
- 30天自制操作系统Day8
- Palm OS、Windows CE及Linux OS之比较
- 按键精灵大漠插件自动寻路自动打怪代码片段
- 蓝桥 蓝桥公园 Floyd