#[non_exhaustive]pub enum WorldError {
Truncated {
pos: ChunkPos,
len: usize,
need: usize,
},
BulkTruncated {
len: usize,
need: usize,
},
Section {
pos: ChunkPos,
section: u8,
reason: &'static str,
},
Decode(DecodeError),
}Expand description
Malformed world data from the server. 1.8 leaves the column the way vanilla does (see
v1_8::World::apply_chunk_data); 1.12 and 1.16 unload it.
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.
Truncated
Chunk data is shorter than its section mask requires.
BulkTruncated
A 1.8 map_chunk_bulk whose data does not cover all listed columns.
Section
A 1.16 section is malformed.
Decode(DecodeError)
A world packet could not be decoded (26.1 raw packet handling).
Trait Implementations§
Source§impl Clone for WorldError
impl Clone for WorldError
Source§impl Debug for WorldError
impl Debug for WorldError
Source§impl Display for WorldError
impl Display for WorldError
impl Eq for WorldError
Source§impl Error for WorldError
impl Error for WorldError
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()
Source§impl PartialEq for WorldError
impl PartialEq for WorldError
impl StructuralPartialEq for WorldError
Auto Trait Implementations§
impl Forget for WorldError
impl Freeze for WorldError
impl Move for WorldError
impl RefUnwindSafe for WorldError
impl Send for WorldError
impl Sync for WorldError
impl Unpin for WorldError
impl UnsafeUnpin for WorldErrorwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for WorldErrorwhere
&'static str: UnwindSafe,
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