pub struct ChunkLoadOptions {
pub data_request: ChunkDataRequest,
pub subchunk_decode: SubChunkDecodeMode,
pub threading: WorldThreadingOptions,
pub pipeline: WorldPipelineOptions,
pub cancel: Option<CancelFlag>,
pub progress: Option<ProgressSink>,
pub priority: ChunkLoadPriority,
pub storage_cache_policy: StorageCachePolicy,
}Expand description
Options controlling render chunk loading.
Fields§
§data_request: ChunkDataRequestComposable map-data contract requested by the caller.
subchunk_decode: SubChunkDecodeModeSubchunk decode mode used while loading render data.
threading: WorldThreadingOptionsThreading policy for this operation.
pipeline: WorldPipelineOptionsBounded pipeline settings for this operation.
cancel: Option<CancelFlag>Optional cancellation flag checked during long-running work.
progress: Option<ProgressSink>Optional progress sink invoked during long-running work.
priority: ChunkLoadPriorityOrdering policy for chunk loading.
storage_cache_policy: StorageCachePolicyBackend cache strategy for exact storage reads used by render loading.
Implementations§
Source§impl ChunkLoadOptions
impl ChunkLoadOptions
Sourcepub fn for_data_request(data_request: ChunkDataRequest) -> Self
pub fn for_data_request(data_request: ChunkDataRequest) -> Self
Creates options from an explicit composable map-data contract.
Sourcepub fn exact_surface_columns(
subchunks: ExactSurfaceSubchunkPolicy,
biome: ExactSurfaceBiomeLoad,
block_entities: bool,
) -> Self
pub fn exact_surface_columns( subchunks: ExactSurfaceSubchunkPolicy, biome: ExactSurfaceBiomeLoad, block_entities: bool, ) -> Self
Creates a surface-column load that avoids materializing full 3D palette indices.
Sourcepub fn raw_height_map() -> Self
pub fn raw_height_map() -> Self
Creates a raw-height-map load with no subchunk index materialization.
Trait Implementations§
Source§impl Clone for ChunkLoadOptions
impl Clone for ChunkLoadOptions
Source§fn clone(&self) -> ChunkLoadOptions
fn clone(&self) -> ChunkLoadOptions
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 moreSource§impl Debug for ChunkLoadOptions
impl Debug for ChunkLoadOptions
Source§impl Default for ChunkLoadOptions
impl Default for ChunkLoadOptions
Source§impl From<WorldChunkQueryRegionLoadOptions> for ChunkLoadOptions
impl From<WorldChunkQueryRegionLoadOptions> for ChunkLoadOptions
Source§fn from(options: WorldChunkQueryRegionLoadOptions) -> Self
fn from(options: WorldChunkQueryRegionLoadOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChunkLoadOptions
impl RefUnwindSafe for ChunkLoadOptions
impl Send for ChunkLoadOptions
impl Sync for ChunkLoadOptions
impl Unpin for ChunkLoadOptions
impl UnsafeUnpin for ChunkLoadOptions
impl UnwindSafe for ChunkLoadOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more