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
+2 -2
View File
@@ -8,7 +8,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 `freezer` subsystem of a Cgroup.
///
@@ -34,7 +34,7 @@ pub enum FreezerState {
Frozen,
}
impl Controller for FreezerController {
impl ControllerInternal for FreezerController {
fn control_type(&self) -> Controllers {
Controllers::Freezer
}