Docs.rs
ttcore-0.2.35
ttcore 0.2.35
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
ktmlm
Dependencies
futures ^0.3.5
normal
futures-timer ^3.0.2
normal
lazy_static ^1.4
normal
libc ^0.2
normal
myutil ^0.2
normal
nix ^0.18
normal
parking_lot ^0.11
normal
serde ^1.0
normal
serde_json ^1.0
normal
ttcore_def ^0.2
normal
Versions
100%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ttcore
0.2.35
All Items
Sections
TT 核心实现
Crate Items
Structs
Functions
Type Aliases
Crate
ttcore
Copy item path
Source
Expand description
§
TT 核心实现
Structs
§
Env
描述一个环境实例
Resource
已分配的资源信息,
*_used
字段使用 u32 类型, 防止统计数据时的加和运算溢出
Serv
服务定义
Vm
描述一个容器实例的信息
VmCfg
用以与调用方交互
Functions
§
exec
全局入口, 必须首先调用
get_
os_
info
获取服务端支持的系统列表和对应的 Vm 镜像路径, 排除基础快照、镜像内部分区、Clone 临时镜像三类对象
pause
stop an env
resume
restart an env
vm_kind
根据镜像前缀识别虚拟机引擎
Type Aliases
§
Image
Path
eg: “/dev/zvol/zroot/tt/QEMU:CentOS-7.2:default”
OsName
eg: “QEMU:CentOS-7.2:default”