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

An owned security descriptor allocated on the local heap

Unlike Box<SecurityDescriptor>, this allocates memory on the local heap.

There are two ways to create a BoxedSecurityDescriptor:

Implementations§

Creates a security descriptor granting GENERIC_ALL access to Everyone

This is the security descriptor used by default when creating states.

The created security descriptor corresponds to the Security Descriptor String D:(A;;GA;;;WD), meaning it has:

  • no owner
  • no group
  • no System Access Control List (SACL)
  • a Discretionary Access Control List (D = DACL) with a single Access Control Entry (ACE) granting (A) the GENERIC_ALL access right (GA) to Everyone (WD = World)
Errors

Returns an error if creating the security descriptor fails

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Immutably borrows from an owned value. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Executes the destructor for this type. Read more

Parses a BoxedSecurityDescriptor from a Security Descriptor String

See Security Descriptor String Format for details.

The associated error which can be returned from parsing.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more