pub struct OpaqueSecurityContext { /* private fields */ }
Expand description

Opaque security context.

Implementations§

Return the managed raw pointer to selinux_sys::context_s_t.

Return the managed raw pointer to selinux_sys::context_s_t.

Return a new context initialized to a context string.

See: context_new().

Return a new context initialized to a context string.

See: context_new().

Return the string value of this security context.

See: context_str().

Return the string value of this security context’s type.

See: context_type_get().

Set the type of this security context.

See: context_type_set().

Set the type of this security context.

See: context_type_set().

Return the string value of this security context’s range.

See: context_range_get().

Set the range of this security context.

See: context_range_set().

Set the range of this security context.

See: context_range_set().

Return the string value of this security context’s role.

See: context_role_get().

Set the role of this security context.

See: context_role_set().

Set the role of this security context.

See: context_role_set().

Return the string value of this security context’s user.

See: context_user_get().

Set the user of this security context.

See: context_user_set().

Set the user of this security context.

See: context_user_set().

Trait Implementations§

Formats the value using the given formatter. Read more

See: context_str().

See: context_free().

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.