Struct cap_std::fs::Permissions [−][src]
pub struct Permissions { /* fields omitted */ }
Expand description
Representation of the various permissions on a file.
This corresponds to std::fs::Permissions
.
We need to define our own version because the libstd `Permissions` doesn't
have a public constructor that we can use.
Implementations
Constructs a new instance of Self
from the given
std::fs::Permissions
.
Consumes self
and produces a new instance of std::fs::Permissions
.
The `file` parameter works around the fact that we can't construct a
`Permissions` object ourselves on Windows.
Returns true
if these permissions describe a readonly (unwritable)
file.
This corresponds to std::fs::Permissions::readonly
.
Modifies the readonly flag for this set of permissions.
This corresponds to std::fs::Permissions::set_readonly
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
Blanket Implementations
Mutably borrows from an owned value. Read more