File tree 1 file changed +12
-0
lines changed
library/std/src/sys/hermit
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ pub struct OpenOptions {
41
41
mode : i32 ,
42
42
}
43
43
44
+ #[ derive( Copy , Clone , Debug , Default ) ]
45
+ pub struct FileTimes { }
46
+
44
47
pub struct FilePermissions ( !) ;
45
48
46
49
pub struct FileType ( !) ;
@@ -110,6 +113,11 @@ impl fmt::Debug for FilePermissions {
110
113
}
111
114
}
112
115
116
+ impl FileTimes {
117
+ pub fn set_accessed ( & mut self , _t : SystemTime ) { }
118
+ pub fn set_modified ( & mut self , _t : SystemTime ) { }
119
+ }
120
+
113
121
impl FileType {
114
122
pub fn is_dir ( & self ) -> bool {
115
123
self . 0
@@ -344,6 +352,10 @@ impl File {
344
352
pub fn set_permissions ( & self , _perm : FilePermissions ) -> io:: Result < ( ) > {
345
353
Err ( Error :: from_raw_os_error ( 22 ) )
346
354
}
355
+
356
+ pub fn set_times ( & self , _times : FileTimes ) -> io:: Result < ( ) > {
357
+ Err ( Error :: from_raw_os_error ( 22 ) )
358
+ }
347
359
}
348
360
349
361
impl DirBuilder {
You can’t perform that action at this time.
0 commit comments