Files
kata-containers/src/runtime-rs/crates/resource/src/resource_persist.rs
Zhongtao Hu 5aa83754e5 runtime-rs: support save to persist file and restore
Support the functionality of save and restore for sandbox state

Fixes:#4891
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
2022-08-13 15:44:13 +08:00

16 lines
399 B
Rust

// Copyright (c) 2019-2022 Alibaba Cloud
// Copyright (c) 2019-2022 Ant Group
//
// SPDX-License-Identifier: Apache-2.0
//
use crate::network::EndpointState;
use serde::{Deserialize, Serialize};
use crate::cgroups::cgroup_persist::CgroupState;
#[derive(Serialize, Deserialize, Default)]
pub struct ResourceState {
pub endpoint: Vec<EndpointState>,
pub cgroup_state: Option<CgroupState>,
}