Enum ChunkTicketLevel
#[non_exhaustive]pub enum ChunkTicketLevel {
Loaded(u8),
Unloaded,
}Expand description
A chunk’s ticket level (ChunkLevel), as the server holds it: how much of
the level the chunk is kept alive for. Lower is more active. Horizon keeps
no level for a chunk partway through generating, so past FULL a chunk is
Unloaded.
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.
Loaded(u8)
A level ChunkLevel knows, FULL_CHUNK_LEVEL (33) or lower: 31 and
lower is entity ticking (ENTITY_TICKING_LEVEL), 32 is block ticking
(BLOCK_TICKING_LEVEL) and 33 is loaded without ticking.
Unloaded
No ticket keeps the chunk loaded.
Implementations§
§impl ChunkTicketLevel
impl ChunkTicketLevel
Trait Implementations§
§impl Clone for ChunkTicketLevel
impl Clone for ChunkTicketLevel
§fn clone(&self) -> ChunkTicketLevel
fn clone(&self) -> ChunkTicketLevel
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 ChunkTicketLevel
§impl Debug for ChunkTicketLevel
impl Debug for ChunkTicketLevel
impl Eq for ChunkTicketLevel
§impl Hash for ChunkTicketLevel
impl Hash for ChunkTicketLevel
§impl PartialEq for ChunkTicketLevel
impl PartialEq for ChunkTicketLevel
impl StructuralPartialEq for ChunkTicketLevel
Auto Trait Implementations§
impl Freeze for ChunkTicketLevel
impl RefUnwindSafe for ChunkTicketLevel
impl Send for ChunkTicketLevel
impl Sync for ChunkTicketLevel
impl Unpin for ChunkTicketLevel
impl UnsafeUnpin for ChunkTicketLevel
impl UnwindSafe for ChunkTicketLevel
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