mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Add trait bound Sync for Hierarchy
So that the struct Cgroup could across await Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
@@ -386,7 +386,7 @@ pub trait ControllIdentifier {
|
||||
|
||||
/// Control group hierarchy (right now, only V1 is supported, but in the future Unified will be
|
||||
/// implemented as well).
|
||||
pub trait Hierarchy: std::fmt::Debug + Send {
|
||||
pub trait Hierarchy: std::fmt::Debug + Send + Sync {
|
||||
/// Returns what subsystems are supported by the hierarchy.
|
||||
fn subsystems(&self) -> Vec<Subsystem>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user