pub enum SidError {
Revision(u8),
SubAuthorityCount(usize),
IdentifierAuthority,
PacketLength,
StringSyntax,
}Expand description
Error returned when constructing or parsing a SID.
Variants§
Revision(u8)
The SID uses a revision other than revision 1.
SubAuthorityCount(usize)
The SID has fewer than one or more than 15 sub-authorities.
IdentifierAuthority
The identifier authority exceeds the 48-bit Windows field.
PacketLength
The binary packet length does not match its declared structure.
StringSyntax
Text was not canonical SID notation.
Trait Implementations§
impl Eq for SidError
Source§impl Error for SidError
impl Error for SidError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for SidError
Auto Trait Implementations§
impl Freeze for SidError
impl RefUnwindSafe for SidError
impl Send for SidError
impl Sync for SidError
impl Unpin for SidError
impl UnsafeUnpin for SidError
impl UnwindSafe for SidError
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