pub enum SubjectValidateError {
Empty,
IllegalCharacter,
BrokenToken,
BrokenWildcard,
}Expand description
An error encountered while validating Subject
Variants§
Empty
The value is empty
IllegalCharacter
The value contains , \t, \r or \n
BrokenToken
The value contains consecutive . characters
BrokenWildcard
The value contains . or > together with other characters
in the same token, or the > is in the non-last token
Trait Implementations§
Source§impl Debug for SubjectValidateError
impl Debug for SubjectValidateError
Source§impl Display for SubjectValidateError
impl Display for SubjectValidateError
Source§impl Error for SubjectValidateError
impl Error for SubjectValidateError
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 SubjectValidateError
impl RefUnwindSafe for SubjectValidateError
impl Send for SubjectValidateError
impl Sync for SubjectValidateError
impl Unpin for SubjectValidateError
impl UnsafeUnpin for SubjectValidateError
impl UnwindSafe for SubjectValidateError
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