#[non_exhaustive]pub enum FailureIdentifierError {
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidSegmentStart {
index: usize,
},
InvalidByte {
index: usize,
},
}Expand description
Validation failure shared by FailureCode and FailureOrigin.
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 the 128-byte wire ceiling.
InvalidSegmentStart
The first byte, or the first byte after ., was not lowercase ASCII.
InvalidByte
A non-separator byte did not belong to the stable ASCII grammar.
Trait Implementations§
Source§impl Clone for FailureIdentifierError
impl Clone for FailureIdentifierError
Source§impl Debug for FailureIdentifierError
impl Debug for FailureIdentifierError
Source§impl Display for FailureIdentifierError
impl Display for FailureIdentifierError
impl Eq for FailureIdentifierError
Source§impl Error for FailureIdentifierError
impl Error for FailureIdentifierError
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 FailureIdentifierError
impl PartialEq for FailureIdentifierError
impl StructuralPartialEq for FailureIdentifierError
Auto Trait Implementations§
impl Forget for FailureIdentifierError
impl Freeze for FailureIdentifierError
impl Move for FailureIdentifierError
impl RefUnwindSafe for FailureIdentifierError
impl Send for FailureIdentifierError
impl Sync for FailureIdentifierError
impl Unpin for FailureIdentifierError
impl UnsafeUnpin for FailureIdentifierError
impl UnwindSafe for FailureIdentifierError
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