#[non_exhaustive]pub enum SecurityCaptureFailure {
InvalidDescriptor,
ReadControl,
SizeSelfRelative,
MakeSelfRelative,
InvalidCopy,
ReadAcl,
Allocate,
}Expand description
Why a caller’s security attributes could not be captured.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidDescriptor
Windows rejected the descriptor as malformed.
Reported at construction, on the calling thread, rather than left for the eventual call to fail with it on a worker.
ReadControl
Windows could not report the descriptor’s control flags, so whether it was absolute or self-relative could not be established.
SizeSelfRelative
Windows could not size the self-relative form of an absolute descriptor.
MakeSelfRelative
Windows could not convert an absolute descriptor to self-relative form.
InvalidCopy
The captured copy did not validate, which would mean the conversion produced something Windows will not accept later.
ReadAcl
Windows could not report the descriptor’s DACL or SACL.
Allocate
The memory for the owned copy could not be allocated.
The error’s code is ERROR_NOT_ENOUGH_MEMORY, which this crate supplies; no Win32 call
produced it.