Enum LevelWriteError
#[non_exhaustive]pub enum LevelWriteError {
Stale,
Unavailable,
InvalidState(BlockStateError),
}Expand description
Why a block write cannot reach its authoritative level.
Ok(false) instead means vanilla refused an otherwise valid write, for example an
unloaded or out-of-height position or an unchanged block.
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 level is gone or its handle belongs to an earlier lifetime.
The operation is unavailable on this side, phase or current level.
InvalidState(BlockStateError)
The supplied block state does not exist in the owning registry.
Trait Implementations§
§impl Clone for LevelWriteError
impl Clone for LevelWriteError
§fn clone(&self) -> LevelWriteError
fn clone(&self) -> LevelWriteError
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 LevelWriteError
§impl Debug for LevelWriteError
impl Debug for LevelWriteError
impl Eq for LevelWriteError
§impl From<BlockStateError> for LevelWriteError
impl From<BlockStateError> for LevelWriteError
§fn from(error: BlockStateError) -> LevelWriteError
fn from(error: BlockStateError) -> LevelWriteError
Converts to this type from the input type.
§impl From<LevelReadError> for LevelWriteError
impl From<LevelReadError> for LevelWriteError
§fn from(error: LevelReadError) -> LevelWriteError
fn from(error: LevelReadError) -> LevelWriteError
Converts to this type from the input type.
§impl NoBackend for LevelWriteError
impl NoBackend for LevelWriteError
§fn no_backend() -> LevelWriteError
fn no_backend() -> LevelWriteError
The error for a host without a game.
§impl PartialEq for LevelWriteError
impl PartialEq for LevelWriteError
impl StructuralPartialEq for LevelWriteError
Auto Trait Implementations§
impl Freeze for LevelWriteError
impl RefUnwindSafe for LevelWriteError
impl Send for LevelWriteError
impl Sync for LevelWriteError
impl Unpin for LevelWriteError
impl UnsafeUnpin for LevelWriteError
impl UnwindSafe for LevelWriteError
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