mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Add Serialize/Deserialize to resource and stat types
Add feature "serde" that derives all resource and statistics types from Serialize and Deserialize. The feature is turned off by default. Fixes #54 Fixes #55 Fixes #56 Signed-off-by: Felix Obenhuber <felix@obenhuber.de>
This commit is contained in:
@@ -36,6 +36,7 @@ pub struct CpuController {
|
||||
|
||||
/// The current state of the control group and its processes.
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct Cpu {
|
||||
/// Reports CPU time statistics.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user