Update unix_permissions.rs
This commit is contained in:
parent
c9322e22c3
commit
17fab427d1
|
@ -1,9 +1,9 @@
|
|||
/// A NOOP struct for bringing the API between Windows and Unix up to parity. To set permissions
|
||||
/// properly on Unix, you can just use `std::os::unix::fs::PermissionsExt`.
|
||||
pub struct SecurityAttributes {}
|
||||
pub struct SecurityAttributes
|
||||
|
||||
impl SecurityAttributes {
|
||||
pub fn empty() -> Self {Self{}}
|
||||
pub fn allow_everyone_connect() -> Self {Self{}}
|
||||
pub fn allow_everyone_create() -> Self {Self{}}
|
||||
pub fn empty() -> Self { SecurityAttributes }
|
||||
pub fn allow_everyone_connect() -> Self { SecurityAttributes }
|
||||
pub fn allow_everyone_create() -> Self { SecurityAttributes }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue