pub enum SecDescError {
Show 13 variants
Revision(u8),
OwnerNotLoaded,
GroupNotLoaded,
AclNotLoaded(AclKind),
AclNotPresent(AclKind),
AclPresenceConflict(AclKind),
AclPresenceRequiresValue(AclKind),
ComponentNotLoaded(SecDescComponent),
Acl(AclKind, AclError),
PacketLength,
NotSelfRelative,
PacketOffset(SecDescComponent, u32),
PacketComponent(SecDescComponent),
}Expand description
Error returned when constructing or deserializing a security descriptor.
Variants§
Revision(u8)
The descriptor uses an unsupported revision.
OwnerNotLoaded
An owner SID was supplied without loading the owner component.
GroupNotLoaded
A group SID was supplied without loading the group component.
AclNotLoaded(AclKind)
An ACL was supplied without loading its component.
AclNotPresent(AclKind)
An ACL was supplied while its present bit is clear.
AclPresenceConflict(AclKind)
An update supplies an ACL while explicitly marking it absent.
AclPresenceRequiresValue(AclKind)
An update marks an unloaded or absent ACL present without supplying one.
ComponentNotLoaded(SecDescComponent)
An update changes a control bit for an unloaded component.
Acl(AclKind, AclError)
A supplied ACL packet is malformed.
PacketLength
The self-relative descriptor header is truncated.
NotSelfRelative
The descriptor is in absolute rather than self-relative form.
PacketOffset(SecDescComponent, u32)
A component offset is invalid or misaligned.
PacketComponent(SecDescComponent)
A component packet is truncated or malformed.
Trait Implementations§
Source§impl Clone for SecDescError
impl Clone for SecDescError
Source§fn clone(&self) -> SecDescError
fn clone(&self) -> SecDescError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecDescError
impl Debug for SecDescError
Source§impl Display for SecDescError
impl Display for SecDescError
impl Eq for SecDescError
Source§impl Error for SecDescError
impl Error for SecDescError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()