File tree 1 file changed +12
-0
lines changed
library/std/src/sys/solid
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ pub struct OpenOptions {
77
77
custom_flags : i32 ,
78
78
}
79
79
80
+ #[ derive( Copy , Clone , Debug , Default ) ]
81
+ pub struct FileTimes { }
82
+
80
83
#[ derive( Clone , PartialEq , Eq , Debug ) ]
81
84
pub struct FilePermissions ( c_short ) ;
82
85
@@ -126,6 +129,11 @@ impl FilePermissions {
126
129
}
127
130
}
128
131
132
+ impl FileTimes {
133
+ pub fn set_accessed ( & mut self , _t : SystemTime ) { }
134
+ pub fn set_modified ( & mut self , _t : SystemTime ) { }
135
+ }
136
+
129
137
impl FileType {
130
138
pub fn is_dir ( & self ) -> bool {
131
139
self . is ( abi:: S_IFDIR )
@@ -452,6 +460,10 @@ impl File {
452
460
pub fn set_permissions ( & self , _perm : FilePermissions ) -> io:: Result < ( ) > {
453
461
unsupported ( )
454
462
}
463
+
464
+ pub fn set_times ( & self , _times : FileTimes ) -> io:: Result < ( ) > {
465
+ unsupported ( )
466
+ }
455
467
}
456
468
457
469
impl Drop for File {
You can’t perform that action at this time.
0 commit comments