# Trait std::os::unix::fs::PermissionsExt [−] [src]

    pub trait PermissionsExt {
        fn mode(&self) -> mode_t;
        fn set_mode(&mut self, mode: mode_t);
        fn from_mode(mode: mode_t) -> Self;
    }

Unix-specific extensions to `Permissions`

## Required Methods

### `fn mode(&self) -> mode_t`

Returns the underlying raw `mode_t` bits that are the standard Unix permissions for this file.

### `fn set_mode(&mut self, mode: mode_t)`

Sets the underlying raw `mode_t` bits for this set of permissions.

### `fn from_mode(mode: mode_t) -> Self`

Creates a new instance of `Permissions` from the given set of Unix permission bits.

## Implementors

- `impl PermissionsExt for Permissions`
- `impl PermissionsExt for Permissions`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)