Enum anvil_region::error::ChunkReadError[][src]

pub enum ChunkReadError {
    ChunkNotFound {
        position: RegionChunkPosition,
    },
    LengthExceedsMaximum {
        length: u32,
        maximum_length: u32,
    },
    UnsupportedCompressionScheme {
        compression_scheme: u8,
    },
    IOError {
        io_error: Error,
    },
    TagDecodeError {
        tag_decode_error: TagDecodeError,
    },
}

Possible errors while loading the chunk.

Variants

ChunkNotFound

Chunk at specified coordinates inside region not found.

Fields of ChunkNotFound

position: RegionChunkPosition
LengthExceedsMaximum

Chunk length overlaps declared maximum.

This should not occur under normal conditions.

Region file are corrupted.

Fields of LengthExceedsMaximum

length: u32

Chunk length.

maximum_length: u32

Chunk maximum expected length.

UnsupportedCompressionScheme

Currently are only 2 types of compression: Gzip and Zlib.

This should not occur under normal conditions.

Region file are corrupted or was introduced new compression type.

Fields of UnsupportedCompressionScheme

compression_scheme: u8

Compression scheme type id.

IOError

I/O Error which happened while were reading chunk data from region file.

Fields of IOError

io_error: Error
TagDecodeError

Error while decoding binary data to NBT tag.

This should not occur under normal conditions.

Region file are corrupted or a developer error in the NBT library.

Fields of TagDecodeError

tag_decode_error: TagDecodeError

Trait Implementations

impl Debug for ChunkReadError[src]

impl From<Error> for ChunkReadError[src]

impl From<TagDecodeError> for ChunkReadError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.