Enum DataMapError
#[non_exhaustive]pub enum DataMapError {
Unavailable,
UnknownType,
Undecodable,
}Expand description
Why a data map read has no answer. An entry the map gives no value is Ok(None), not one of
these.
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.
No data maps are loaded here: a client (data maps are not synced to clients), a server before its world’s data first loads, or a host with no game behind it.
UnknownType
No mod registered the map for the entry’s registry in the current data load
(data_map_types).
Undecodable
The entry’s value is not one the map’s DataMap::decode takes.
Trait Implementations§
§impl Clone for DataMapError
impl Clone for DataMapError
§fn clone(&self) -> DataMapError
fn clone(&self) -> DataMapError
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 DataMapError
§impl Debug for DataMapError
impl Debug for DataMapError
impl Eq for DataMapError
§impl NoBackend for DataMapError
impl NoBackend for DataMapError
§fn no_backend() -> DataMapError
fn no_backend() -> DataMapError
The error for a host without a game.
§impl PartialEq for DataMapError
impl PartialEq for DataMapError
impl StructuralPartialEq for DataMapError
Auto Trait Implementations§
impl Freeze for DataMapError
impl RefUnwindSafe for DataMapError
impl Send for DataMapError
impl Sync for DataMapError
impl Unpin for DataMapError
impl UnsafeUnpin for DataMapError
impl UnwindSafe for DataMapError
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