#[non_exhaustive]pub enum AgentSubmissionKeyError {
TooShort {
minimum: usize,
actual: usize,
},
TooLong {
maximum: usize,
actual: usize,
},
InvalidByte {
index: usize,
},
}Expand description
Invalid external Agent-submission idempotency key.
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.
TooShort
The key did not meet the minimum length required for safe caller IDs.
TooLong
The key exceeded the hard request/header bound.
InvalidByte
A byte did not belong to the exact opaque-key grammar.
Trait Implementations§
Source§impl Clone for AgentSubmissionKeyError
impl Clone for AgentSubmissionKeyError
Source§impl Debug for AgentSubmissionKeyError
impl Debug for AgentSubmissionKeyError
Source§impl Display for AgentSubmissionKeyError
impl Display for AgentSubmissionKeyError
impl Eq for AgentSubmissionKeyError
Source§impl Error for AgentSubmissionKeyError
impl Error for AgentSubmissionKeyError
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 AgentSubmissionKeyError
impl PartialEq for AgentSubmissionKeyError
impl StructuralPartialEq for AgentSubmissionKeyError
Auto Trait Implementations§
impl Forget for AgentSubmissionKeyError
impl Freeze for AgentSubmissionKeyError
impl Move for AgentSubmissionKeyError
impl RefUnwindSafe for AgentSubmissionKeyError
impl Send for AgentSubmissionKeyError
impl Sync for AgentSubmissionKeyError
impl Unpin for AgentSubmissionKeyError
impl UnsafeUnpin for AgentSubmissionKeyError
impl UnwindSafe for AgentSubmissionKeyError
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