pub enum SecretReferenceError {
Empty,
TooLong {
maximum: usize,
},
InvalidStart,
InvalidCharacter {
index: usize,
},
DotSequence,
}Expand description
Reason an opaque secret reference was rejected.
Variants§
Empty
The reference identifier was empty.
TooLong
The reference exceeded the protocol limit.
InvalidStart
The first byte cannot start an identifier in this namespace.
InvalidCharacter
A byte outside the namespace’s allowlist was found.
DotSequence
A path-like dot sequence was found.
Trait Implementations§
Source§impl Clone for SecretReferenceError
impl Clone for SecretReferenceError
impl Copy for SecretReferenceError
Source§impl Debug for SecretReferenceError
impl Debug for SecretReferenceError
Source§impl Display for SecretReferenceError
impl Display for SecretReferenceError
impl Eq for SecretReferenceError
Source§impl Error for SecretReferenceError
impl Error for SecretReferenceError
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 SecretReferenceError
impl PartialEq for SecretReferenceError
impl StructuralPartialEq for SecretReferenceError
Auto Trait Implementations§
impl Freeze for SecretReferenceError
impl RefUnwindSafe for SecretReferenceError
impl Send for SecretReferenceError
impl Sync for SecretReferenceError
impl Unpin for SecretReferenceError
impl UnsafeUnpin for SecretReferenceError
impl UnwindSafe for SecretReferenceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.