#[non_exhaustive]pub enum PayloadStrategyError {
EmptyStrategyId,
StrategyIdTooLong {
actual: usize,
maximum: usize,
},
InvalidStrategyId,
ZeroRevision,
ArtifactLimitTooLarge {
actual: u32,
maximum: u32,
},
SeedTooLarge {
actual: usize,
maximum: u32,
},
ArtifactTooLarge {
actual: usize,
maximum: u32,
},
StrategyIdentityConflict {
strategy: PayloadStrategyRef,
},
UnknownStrategy {
strategy: PayloadStrategyRef,
},
StrategyProvenanceMismatch,
VariantRoleMismatch,
DerivationFailed,
}Expand description
Validation and resolution failures for deterministic payload strategies.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyStrategyId
A stable strategy identity was empty.
StrategyIdTooLong
A strategy identity exceeded the bounded wire contract.
InvalidStrategyId
A strategy identity was not a canonical, log-safe ASCII slug.
ZeroRevision
Revision zero is reserved for invalid or unspecified strategies.
ArtifactLimitTooLarge
A configured byte limit exceeded the hard safety ceiling.
SeedTooLarge
A seed exceeded the per-turn byte allowance.
ArtifactTooLarge
A derived artifact exceeded the per-turn byte allowance.
StrategyIdentityConflict
A strategy reference was registered more than once.
Fields
strategy: PayloadStrategyRefUnknownStrategy
No implementation was registered for the planner-selected reference.
Fields
strategy: PayloadStrategyRefStrategyProvenanceMismatch
An implementation returned an artifact for another strategy reference.
VariantRoleMismatch
An implementation returned the opposite control/candidate role.
DerivationFailed
A strategy could not derive an artifact.
This variant deliberately carries no free-form diagnostic because a strategy has access to raw seed bytes and errors are routinely logged.
Trait Implementations§
Source§impl Clone for PayloadStrategyError
impl Clone for PayloadStrategyError
Source§fn clone(&self) -> PayloadStrategyError
fn clone(&self) -> PayloadStrategyError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PayloadStrategyError
impl Debug for PayloadStrategyError
Source§impl Display for PayloadStrategyError
impl Display for PayloadStrategyError
impl Eq for PayloadStrategyError
Source§impl Error for PayloadStrategyError
impl Error for PayloadStrategyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for PayloadStrategyError
impl PartialEq for PayloadStrategyError
impl StructuralPartialEq for PayloadStrategyError
Auto Trait Implementations§
impl Freeze for PayloadStrategyError
impl RefUnwindSafe for PayloadStrategyError
impl Send for PayloadStrategyError
impl Sync for PayloadStrategyError
impl Unpin for PayloadStrategyError
impl UnsafeUnpin for PayloadStrategyError
impl UnwindSafe for PayloadStrategyError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.