Enum StackWriteError
#[non_exhaustive]pub enum StackWriteError {
Text(TextFormError),
Unavailable,
UnknownItem,
CountExceeded {
maximum: u32,
},
DamageExceeded {
maximum: u32,
},
InvalidMaximum,
EmptyEngineStack,
InvalidComponents {
reason: StackError,
},
InvalidEffectPayload,
StackableDamageable,
}Expand description
Why the game refused to accept an owned stack at a write boundary.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Text(TextFormError)
A text field failed component conversion before this write.
The host has no game backend for this operation.
UnknownItem
The process-local key is not present in this game’s item registry.
CountExceeded
The count is above the effective stack limit.
DamageExceeded
The damage is above the effective durability limit.
InvalidMaximum
A maximum is malformed or negative, or a stack limit lies outside 1..=99.
EmptyEngineStack
An engine result contained a zero-count stack instead of an empty slot.
InvalidComponents
An engine snapshot’s component patch was malformed or conflicted with its damage.
Fields
reason: StackErrorThe record-level normalization refusal.
InvalidEffectPayload
A consume or death-protection component could not decode its opaque effect payload.
StackableDamageable
A stack carries both maximum durability and a stack limit above one.
Trait Implementations§
§impl Clone for StackWriteError
impl Clone for StackWriteError
§fn clone(&self) -> StackWriteError
fn clone(&self) -> StackWriteError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more