Enum RegistrationReadError
#[non_exhaustive]pub enum RegistrationReadError {
Unavailable,
InvalidRegistryName(String),
UnknownRegistry(String),
InvalidSettingKey(String),
UnknownMod(String),
}Expand description
Why a registration read was refused.
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.
The engine supplied no registry or settings data to this context.
InvalidRegistryName(String)
The registry name is not a namespaced identifier (minecraft:item).
UnknownRegistry(String)
No built-in registry has this name.
InvalidSettingKey(String)
The setting key is empty or names a path rather than one key.
UnknownMod(String)
No loaded package has this ID, so it has no settings to read.
Trait Implementations§
§impl Clone for RegistrationReadError
impl Clone for RegistrationReadError
§fn clone(&self) -> RegistrationReadError
fn clone(&self) -> RegistrationReadError
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 RegistrationReadError
impl Debug for RegistrationReadError
§impl Display for RegistrationReadError
impl Display for RegistrationReadError
impl Eq for RegistrationReadError
§impl Error for RegistrationReadError
impl Error for RegistrationReadError
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()
§impl PartialEq for RegistrationReadError
impl PartialEq for RegistrationReadError
impl StructuralPartialEq for RegistrationReadError
Auto Trait Implementations§
impl Freeze for RegistrationReadError
impl RefUnwindSafe for RegistrationReadError
impl Send for RegistrationReadError
impl Sync for RegistrationReadError
impl Unpin for RegistrationReadError
impl UnsafeUnpin for RegistrationReadError
impl UnwindSafe for RegistrationReadError
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