pub struct EnvMeta {
pub id: EnvId,
pub start_timestamp: u64,
pub end_timestamp: u64,
pub vm_cnt: usize,
pub is_stopped: bool,
}Expand description
元信息, 用于展示
Fields§
§id: EnvId保证全局唯一
start_timestamp: u64起始时间设定之后不允许变更
end_timestamp: u64结束时间可以变更, 用以控制 Vm 的生命周期
vm_cnt: usize内部的 Vm 数量
is_stopped: bool是否处于停止状态
tt env stop ...
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvMeta
impl<'de> Deserialize<'de> for EnvMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnvMeta
impl RefUnwindSafe for EnvMeta
impl Send for EnvMeta
impl Sync for EnvMeta
impl Unpin for EnvMeta
impl UnwindSafe for EnvMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more