#[non_exhaustive]pub enum SecurityCaptureFailure {
InvalidDescriptor,
ReadControl,
SizeSelfRelative,
MakeSelfRelative,
InvalidCopy,
ReadAcl,
}Expand description
Why a caller’s security attributes could not be captured.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
Trait Implementations§
Source§impl Clone for SecurityCaptureFailure
impl Clone for SecurityCaptureFailure
Source§fn clone(&self) -> SecurityCaptureFailure
fn clone(&self) -> SecurityCaptureFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecurityCaptureFailure
Source§impl Debug for SecurityCaptureFailure
impl Debug for SecurityCaptureFailure
impl Eq for SecurityCaptureFailure
Source§impl Hash for SecurityCaptureFailure
impl Hash for SecurityCaptureFailure
Source§impl PartialEq for SecurityCaptureFailure
impl PartialEq for SecurityCaptureFailure
impl StructuralPartialEq for SecurityCaptureFailure
Auto Trait Implementations§
impl Freeze for SecurityCaptureFailure
impl RefUnwindSafe for SecurityCaptureFailure
impl Send for SecurityCaptureFailure
impl Sync for SecurityCaptureFailure
impl Unpin for SecurityCaptureFailure
impl UnsafeUnpin for SecurityCaptureFailure
impl UnwindSafe for SecurityCaptureFailure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more