@@ -25,41 +25,41 @@ use sys_common::{AsInnerMut, AsInner};
25
25
pub trait OpenOptionsExt {
26
26
/// Overrides the `dwDesiredAccess` argument to the call to `CreateFile`
27
27
/// with the specified value.
28
- fn desired_access ( & mut self , access : i32 ) -> & mut Self ;
28
+ fn desired_access ( & mut self , access : u32 ) -> & mut Self ;
29
29
30
30
/// Overrides the `dwCreationDisposition` argument to the call to
31
31
/// `CreateFile` with the specified value.
32
32
///
33
33
/// This will override any values of the standard `create` flags, for
34
34
/// example.
35
- fn creation_disposition ( & mut self , val : i32 ) -> & mut Self ;
35
+ fn creation_disposition ( & mut self , val : u32 ) -> & mut Self ;
36
36
37
37
/// Overrides the `dwFlagsAndAttributes` argument to the call to
38
38
/// `CreateFile` with the specified value.
39
39
///
40
40
/// This will override any values of the standard flags on the
41
41
/// `OpenOptions` structure.
42
- fn flags_and_attributes ( & mut self , val : i32 ) -> & mut Self ;
42
+ fn flags_and_attributes ( & mut self , val : u32 ) -> & mut Self ;
43
43
44
44
/// Overrides the `dwShareMode` argument to the call to `CreateFile` with
45
45
/// the specified value.
46
46
///
47
47
/// This will override any values of the standard flags on the
48
48
/// `OpenOptions` structure.
49
- fn share_mode ( & mut self , val : i32 ) -> & mut Self ;
49
+ fn share_mode ( & mut self , val : u32 ) -> & mut Self ;
50
50
}
51
51
52
52
impl OpenOptionsExt for OpenOptions {
53
- fn desired_access ( & mut self , access : i32 ) -> & mut OpenOptions {
53
+ fn desired_access ( & mut self , access : u32 ) -> & mut OpenOptions {
54
54
self . as_inner_mut ( ) . desired_access ( access) ; self
55
55
}
56
- fn creation_disposition ( & mut self , access : i32 ) -> & mut OpenOptions {
56
+ fn creation_disposition ( & mut self , access : u32 ) -> & mut OpenOptions {
57
57
self . as_inner_mut ( ) . creation_disposition ( access) ; self
58
58
}
59
- fn flags_and_attributes ( & mut self , access : i32 ) -> & mut OpenOptions {
59
+ fn flags_and_attributes ( & mut self , access : u32 ) -> & mut OpenOptions {
60
60
self . as_inner_mut ( ) . flags_and_attributes ( access) ; self
61
61
}
62
- fn share_mode ( & mut self , access : i32 ) -> & mut OpenOptions {
62
+ fn share_mode ( & mut self , access : u32 ) -> & mut OpenOptions {
63
63
self . as_inner_mut ( ) . share_mode ( access) ; self
64
64
}
65
65
}
0 commit comments