Enum BlockEntityDataError
#[non_exhaustive]pub enum BlockEntityDataError {
Stale,
Unavailable,
TooManySlots {
count: u64,
limit: u64,
},
}Expand description
Why a mod block entity’s menu data slots could not be sized.
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.
Stale
The handle no longer identifies a loaded entity in the requested level.
The entity is vanilla, not a configured mod holder, or not writable here.
TooManySlots
The requested vector exceeds the game’s mod-menu data-slot limit.
Trait Implementations§
§impl Clone for BlockEntityDataError
impl Clone for BlockEntityDataError
§fn clone(&self) -> BlockEntityDataError
fn clone(&self) -> BlockEntityDataError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BlockEntityDataError
impl Debug for BlockEntityDataError
impl Eq for BlockEntityDataError
§impl NoBackend for BlockEntityDataError
impl NoBackend for BlockEntityDataError
§fn no_backend() -> BlockEntityDataError
fn no_backend() -> BlockEntityDataError
The error for a host without a game.
§impl PartialEq for BlockEntityDataError
impl PartialEq for BlockEntityDataError
impl StructuralPartialEq for BlockEntityDataError
Auto Trait Implementations§
impl Freeze for BlockEntityDataError
impl RefUnwindSafe for BlockEntityDataError
impl Send for BlockEntityDataError
impl Sync for BlockEntityDataError
impl Unpin for BlockEntityDataError
impl UnsafeUnpin for BlockEntityDataError
impl UnwindSafe for BlockEntityDataError
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