A way to access a file.
This type is used to check whether a file can be accessed with a certain set of permissions.
struct AccessMode(u16)
| Position | Description |
|---|---|
| 1 |
| Name | Description |
|---|---|
| empty | Create an access mode with all bits unset. |
| Receiver | Name | Description |
|---|---|---|
&self | is_executable | Checks if the |
&self | is_readable | Checks if the |
&self | is_writable | Checks if the |
&mut self | set_executable | Sets or unsets the |
&mut self | set_readable | Sets or unsets the |
&mut self | set_writable | Sets or unsets the |
| Name | Description |
|---|---|
| Clone | Objects that can be duplicated. |
| Copy | Objects that can safely be copied via |
| Debug | Objects that can be formatted in a "debug" form. |
| Display | Objects that can be formatted in a "display" form. |
| Eq | Objects that implement the binary |
| MaybeClone | Objects that can be duplicated. |
| Parsable | Types that are parsable. |
| Pod | Objects that are safe to use if they contain a random bit pattern. |