mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Hide most of the previously undocumented methods in a sealed trait
This commit is contained in:
committed by
Levente Kurusa
parent
7826b798bd
commit
c63dad411b
+2
-2
@@ -9,7 +9,7 @@ use std::path::PathBuf;
|
||||
use error::*;
|
||||
use error::ErrorKind::*;
|
||||
|
||||
use {ControllIdentifier, Controller, Controllers, Resources, Subsystem};
|
||||
use {ControllIdentifier, ControllerInternal, Controllers, Resources, Subsystem};
|
||||
|
||||
/// A controller that allows controlling the `cpuacct` subsystem of a Cgroup.
|
||||
///
|
||||
@@ -52,7 +52,7 @@ pub struct CpuAcct {
|
||||
pub usage_user: u64,
|
||||
}
|
||||
|
||||
impl Controller for CpuAcctController {
|
||||
impl ControllerInternal for CpuAcctController {
|
||||
fn control_type(&self) -> Controllers {
|
||||
Controllers::CpuAcct
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user