pub struct WorldSelection {
pub target_world: Arc<World>,
pub pending_token: PendingWorldChangeToken,
pub prefetch: Option<ChunkRequestHandle>,
pub entry: WorldEntry,
}Expand description
A player’s selection of a loaded world, queued until the next tick’s world changes.
Fields§
§target_world: Arc<World>The target world to teleport into.
pending_token: PendingWorldChangeTokenRuntime token proving this request still owns the player’s relocation.
prefetch: Option<ChunkRequestHandle>Chunks around the target’s spawn, requested when the selection was queued so they
start loading in the same tick. None for an exact placement, which searches nothing, and
for a spawn search wider than one chunk.
entry: WorldEntryHow the player enters the target world.
Auto Trait Implementations§
impl !RefUnwindSafe for WorldSelection
impl !UnwindSafe for WorldSelection
impl Freeze for WorldSelection
impl Send for WorldSelection
impl Sync for WorldSelection
impl Unpin for WorldSelection
impl UnsafeUnpin for WorldSelection
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>