Enum DatapackReadError
#[non_exhaustive]pub enum DatapackReadError {
WrongSession,
StaleGeneration,
UnknownRegistry,
MissingEntry,
Unavailable,
}Expand description
Why a handle or a lookup failed.
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.
WrongSession
The handle is from another world session, as after closing and reopening the world.
StaleGeneration
The handle is from an earlier generation: the registries reloaded since.
UnknownRegistry
No registry has this key.
MissingEntry
The registry has no such entry (a reload removed it, or no pack defines it).
The game has no world open to read from, or no host answered.
Trait Implementations§
§impl Clone for DatapackReadError
impl Clone for DatapackReadError
§fn clone(&self) -> DatapackReadError
fn clone(&self) -> DatapackReadError
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 moreimpl Copy for DatapackReadError
§impl Debug for DatapackReadError
impl Debug for DatapackReadError
impl Eq for DatapackReadError
§impl NoBackend for DatapackReadError
impl NoBackend for DatapackReadError
§fn no_backend() -> DatapackReadError
fn no_backend() -> DatapackReadError
The error for a host without a game.
§impl PartialEq for DatapackReadError
impl PartialEq for DatapackReadError
impl StructuralPartialEq for DatapackReadError
Auto Trait Implementations§
impl Freeze for DatapackReadError
impl RefUnwindSafe for DatapackReadError
impl Send for DatapackReadError
impl Sync for DatapackReadError
impl Unpin for DatapackReadError
impl UnsafeUnpin for DatapackReadError
impl UnwindSafe for DatapackReadError
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