pub enum KeyLabelError {
Empty,
TooLong,
InvalidByte,
}Expand description
Stable key-label validation failures.
Variants§
Empty
Key labels must contain at least one byte.
TooLong
Key labels exceeded the bounded length policy.
InvalidByte
Key labels contained a byte outside the allowlist.
Trait Implementations§
Source§impl Clone for KeyLabelError
impl Clone for KeyLabelError
impl Copy for KeyLabelError
Source§impl Debug for KeyLabelError
impl Debug for KeyLabelError
Source§impl Display for KeyLabelError
impl Display for KeyLabelError
impl Eq for KeyLabelError
Source§impl Error for KeyLabelError
impl Error for KeyLabelError
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 KeyLabelError
impl PartialEq for KeyLabelError
impl StructuralPartialEq for KeyLabelError
Auto Trait Implementations§
impl Freeze for KeyLabelError
impl RefUnwindSafe for KeyLabelError
impl Send for KeyLabelError
impl Sync for KeyLabelError
impl Unpin for KeyLabelError
impl UnsafeUnpin for KeyLabelError
impl UnwindSafe for KeyLabelError
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