pub enum KeyBytesError {
TooLong {
actual: usize,
maximum: usize,
},
TooShort {
actual: usize,
minimum: usize,
},
WrongPurpose {
expected: u8,
actual: u8,
},
UnsupportedVersion {
version: u8,
},
ZeroTypeIdentity,
}Expand description
A safe validation failure for bounded canonical key bytes.
Variants§
TooLong
The encoded key exceeds the v1 hard limit.
TooShort
The encoded key cannot contain the required prefix and type identity.
WrongPurpose
The key uses another purpose namespace.
UnsupportedVersion
The key uses an unsupported format version.
ZeroTypeIdentity
The key envelope contains the reserved zero owner identity.
Trait Implementations§
Source§impl Clone for KeyBytesError
impl Clone for KeyBytesError
impl Copy for KeyBytesError
Source§impl Debug for KeyBytesError
impl Debug for KeyBytesError
Source§impl Display for KeyBytesError
impl Display for KeyBytesError
impl Eq for KeyBytesError
Source§impl Error for KeyBytesError
impl Error for KeyBytesError
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 KeyBytesError
impl PartialEq for KeyBytesError
impl StructuralPartialEq for KeyBytesError
Auto Trait Implementations§
impl Freeze for KeyBytesError
impl RefUnwindSafe for KeyBytesError
impl Send for KeyBytesError
impl Sync for KeyBytesError
impl Unpin for KeyBytesError
impl UnsafeUnpin for KeyBytesError
impl UnwindSafe for KeyBytesError
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