Struct capabilities::Capabilities [] [src]

pub struct Capabilities { /* fields omitted */ }

A capability set that can be manipulated.

Methods

impl Capabilities
[src]

Create a new empty capability set

Create a capability set from the specified file descriptor

Create a capability set base on the supplied file path

Create a capability set from the supplied process ID.

Create a capability set based on the current processes capabilities.

Clear all the entries in the capability set.

Clear all instances of the supplied flag.

Check if the supplied capability has the flag set in this capability set.

Update the capability set adding the supplied capabilities. Each of the supplied capabilities will have the flag set or cleared depending on the value supplied for set.

Attempt to apply the capability set to the current process.

Attempt to apply the capability set to the supplied file descriptor.

Attempt to apply the capability set to the supplied file.

Trait Implementations

impl Drop for Capabilities
[src]

A method called when the value goes out of scope. Read more

impl Clone for Capabilities
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Capabilities
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Capabilities
[src]

impl FromStr for Capabilities
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Capabilities
[src]

Formats the value using the given formatter. Read more