pub(crate) struct ScheduledPlayPacket(ScheduledPlayPacketKind);Expand description
A decoded play packet whose handler runs in the server’s inter-tick packet phase.
Tuple Fields§
§0: ScheduledPlayPacketKindImplementations§
Source§impl ScheduledPlayPacket
impl ScheduledPlayPacket
Sourcepub(crate) const fn is_domain_handshake_packet(&self) -> bool
pub(crate) const fn is_domain_handshake_packet(&self) -> bool
Returns whether this packet acknowledges target-world synchronization.
Sourcepub(crate) const fn is_perform_respawn(&self) -> bool
pub(crate) const fn is_perform_respawn(&self) -> bool
Returns whether this is the death screen’s one-shot respawn request.
Sourcepub(crate) const fn execution(&self) -> ScheduledPacketExecution
pub(crate) const fn execution(&self) -> ScheduledPacketExecution
Returns the handler’s audited cross-player concurrency class.
This match is intentionally exhaustive so every newly implemented packet requires an explicit concurrency decision.
pub(crate) const fn can_process_before_join(&self) -> bool
pub(crate) fn handle(self, player: Arc<Player>, server: &Arc<Server>)
Auto Trait Implementations§
impl !RefUnwindSafe for ScheduledPlayPacket
impl !UnwindSafe for ScheduledPlayPacket
impl Freeze for ScheduledPlayPacket
impl Send for ScheduledPlayPacket
impl Sync for ScheduledPlayPacket
impl Unpin for ScheduledPlayPacket
impl UnsafeUnpin for ScheduledPlayPacket
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<>>