Enum AttachmentError
#[non_exhaustive]pub enum AttachmentError {
MissingHolder,
TypeMismatch,
Decode,
Encode,
InvalidNamespace,
InvalidCopyPolicy,
InvalidSyncPolicy,
HolderBusy,
UnsupportedHolder(&'static str),
}Expand description
An attachment operation could not be completed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingHolder
The holder does not exist or is unavailable on this side.
TypeMismatch
The key was used with a different Rust type.
Decode
The saved value could not be decoded.
Encode
The value could not be encoded.
InvalidNamespace
A namespace in the saved compound is not a compound.
InvalidCopyPolicy
Copy-on-death requires a serializer.
InvalidSyncPolicy
Syncing to clients requires a serializer.
HolderBusy
The holder’s physical storage is temporarily extracted or lifted. Retry after the current pass; the refused store writes no value.
UnsupportedHolder(&'static str)
This physical holder family has no attachment lifetime storage; retrying cannot help. Stable lowercase family names: mob, item, orb, projectile, armorstand, itemframe, painting, boat, minecart, other, fangs, crystal, dragon, tnt, falling, rocket, trident, spawner, cloud, cushion, knot, player, hook, dragonpart.
Trait Implementations§
§impl Clone for AttachmentError
impl Clone for AttachmentError
§fn clone(&self) -> AttachmentError
fn clone(&self) -> AttachmentError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more