[−][src]Struct ttcore::Resource
已分配的资源信息,
*_used
字段使用 u32 类型,
防止统计数据时的加和运算溢出
Fields
vm_active: u32
Vm 数量
cpu_total: u64
Cpu 核心数
cpu_used: u32
已使用的 Cpu
mem_total: u64
内存容量(MB)
mem_used: u32
已使用的内存(MB)
disk_total: u64
磁盘容量(MB)
disk_used: u32
已使用的磁盘(MB)
Implementations
impl Resource
[src]
Trait Implementations
impl Clone for Resource
[src]
impl Copy for Resource
[src]
impl Debug for Resource
[src]
impl Default for Resource
[src]
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,