Hide most of the previously undocumented methods in a sealed trait

This commit is contained in:
Sam Wilson
2018-10-10 14:23:06 -04:00
committed by Levente Kurusa
parent 7826b798bd
commit c63dad411b
14 changed files with 106 additions and 71 deletions

View File

@@ -10,7 +10,7 @@ use error::*;
use error::ErrorKind::*;
use {
ControllIdentifier, Controller, Controllers, MemoryResources, Resources, Subsystem,
ControllIdentifier, ControllerInternal, Controllers, MemoryResources, Resources, Subsystem,
};
/// A controller that allows controlling the `memory` subsystem of a Cgroup.
@@ -393,7 +393,7 @@ pub struct Kmem {
pub slabinfo: String,
}
impl Controller for MemController {
impl ControllerInternal for MemController {
fn control_type(&self) -> Controllers {
Controllers::Mem
}