Docs.rs
ttcore_def-0.2.35
ttcore_def 0.2.35
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
ktmlm
Dependencies
serde ^1.0
normal
Versions
97.37%
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
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate ttcore_def
ttcore_
def
0.2.35
All Items
Sections
基本类型定义
Crate Items
Structs
Enums
Constants
Type Aliases
Crate
ttcore_
def
Copy item path
Source
Expand description
§
基本类型定义
Structs
§
EnvInfo
环境实例的详细信息
EnvMeta
元信息, 用于展示
Ipv4
eg: 10.10.123.110
VmInfo
以此结构响应客户端请求, 防止触发 Drop 动作
Enums
§
VmKind
未来可能支持更多的容器引擎
Constants
§
CPU_
DEFAULT
VM CPU 默认数量
DISK_
DEFAULT
VM DISK 默认容量, 单位: MB
MEM_
DEFAULT
VM MEM 默认容量, 单位: MB
SSH_
PORT
VM 默认开放的端口(sshd)
TTREXEC_
PORT
VM 默认开放的端口(ttrexec-daemon
Type Aliases
§
CliId
Cli ID
CliId
Ref
Cli ID as
&str
EnvId
Env ID
EnvId
Ref
Env ID as
&str
Pid
Port
eg: 22
PubPort
外部视角的端口, 如 8080、8443 等 nat 出来的端口
VmId
使用 Vm 的 MAC 地址的末尾两段的乘积, 最大值: 256 * 256
VmPort
Vm 内部视角的端口, 如 80、443 等标准端口