File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ pub trait Controller {
169
169
#[ doc( hidden) ]
170
170
fn control_type ( & self ) -> Controllers ;
171
171
172
+ /// The file system path to the controller.
173
+ fn path ( & self ) -> & Path ;
174
+
172
175
/// Apply a set of resources to the Controller, invoking its internal functions to pass the
173
176
/// kernel the information.
174
177
fn apply ( & self , res : & Resources ) -> Result < ( ) > ;
@@ -194,6 +197,10 @@ impl<T> Controller for T where T: ControllerInternal {
194
197
ControllerInternal :: control_type ( self )
195
198
}
196
199
200
+ fn path ( & self ) -> & Path {
201
+ self . get_path ( )
202
+ }
203
+
197
204
/// Apply a set of resources to the Controller, invoking its internal functions to pass the
198
205
/// kernel the information.
199
206
fn apply ( & self , res : & Resources ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments