#[non_exhaustive]pub enum SubjectIdError {
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidByte {
index: usize,
},
}Expand description
Validation failure for a SubjectId.
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.
Empty
The identifier contained no bytes.
TooLong
The identifier exceeded SubjectId::MAX_LEN.
InvalidByte
A byte was not printable ASCII.
Trait Implementations§
Source§impl Clone for SubjectIdError
impl Clone for SubjectIdError
Source§impl Debug for SubjectIdError
impl Debug for SubjectIdError
Source§impl Display for SubjectIdError
impl Display for SubjectIdError
impl Eq for SubjectIdError
Source§impl Error for SubjectIdError
impl Error for SubjectIdError
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()
Source§impl PartialEq for SubjectIdError
impl PartialEq for SubjectIdError
impl StructuralPartialEq for SubjectIdError
Auto Trait Implementations§
impl Forget for SubjectIdError
impl Freeze for SubjectIdError
impl Move for SubjectIdError
impl RefUnwindSafe for SubjectIdError
impl Send for SubjectIdError
impl Sync for SubjectIdError
impl Unpin for SubjectIdError
impl UnsafeUnpin for SubjectIdError
impl UnwindSafe for SubjectIdError
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