pub enum SecurityIdentifierError {
BadRevision,
ParseError(String),
UnexpectedContent(String),
}Expand description
Represents all errors that may be encountered during either binary or string parsing of a SID.
Variants§
BadRevision
Only version one SIDs are supported. These are also the only SID version known to exist.
ParseError(String)
Generic parsing failure, such as premature ends.
UnexpectedContent(String)
Additional or invalid content was found in the SID.
Trait Implementations§
Source§impl Debug for SecurityIdentifierError
impl Debug for SecurityIdentifierError
Source§impl Display for SecurityIdentifierError
impl Display for SecurityIdentifierError
Source§impl Error for SecurityIdentifierError
impl Error for SecurityIdentifierError
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()
Auto Trait Implementations§
impl Freeze for SecurityIdentifierError
impl RefUnwindSafe for SecurityIdentifierError
impl Send for SecurityIdentifierError
impl Sync for SecurityIdentifierError
impl Unpin for SecurityIdentifierError
impl UnwindSafe for SecurityIdentifierError
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