pub enum EntityMovementSyncPacket {
Position(CMoveEntityPos),
PositionRotation(CMoveEntityPosRot),
Rotation(CMoveEntityRot),
HeadRotation(CRotateHead),
PositionSync(CEntityPositionSync),
Velocity(CSetEntityMotion),
}Expand description
Concrete movement sync packet ready for broadcast.
Variants§
Position(CMoveEntityPos)
Delta-encoded position update.
PositionRotation(CMoveEntityPosRot)
Delta-encoded position and body rotation update.
Rotation(CMoveEntityRot)
Body rotation-only update.
HeadRotation(CRotateHead)
Head yaw update.
PositionSync(CEntityPositionSync)
Full absolute position sync.
Velocity(CSetEntityMotion)
Velocity sync.
Trait Implementations§
Source§impl Clone for EntityMovementSyncPacket
impl Clone for EntityMovementSyncPacket
Source§fn clone(&self) -> EntityMovementSyncPacket
fn clone(&self) -> EntityMovementSyncPacket
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 EntityMovementSyncPacket
impl Debug for EntityMovementSyncPacket
Source§impl From<CMoveEntityRot> for EntityMovementSyncPacket
impl From<CMoveEntityRot> for EntityMovementSyncPacket
Source§fn from(packet: CMoveEntityRot) -> Self
fn from(packet: CMoveEntityRot) -> Self
Converts to this type from the input type.
Source§impl From<CRotateHead> for EntityMovementSyncPacket
impl From<CRotateHead> for EntityMovementSyncPacket
Source§fn from(packet: CRotateHead) -> Self
fn from(packet: CRotateHead) -> Self
Converts to this type from the input type.
Source§impl From<CSetEntityMotion> for EntityMovementSyncPacket
impl From<CSetEntityMotion> for EntityMovementSyncPacket
Source§fn from(packet: CSetEntityMotion) -> Self
fn from(packet: CSetEntityMotion) -> Self
Converts to this type from the input type.
Source§impl From<EntityPositionRotSyncPacket> for EntityMovementSyncPacket
impl From<EntityPositionRotSyncPacket> for EntityMovementSyncPacket
Source§fn from(packet: EntityPositionRotSyncPacket) -> Self
fn from(packet: EntityPositionRotSyncPacket) -> Self
Converts to this type from the input type.
Source§impl From<EntityPositionSyncPacket> for EntityMovementSyncPacket
impl From<EntityPositionSyncPacket> for EntityMovementSyncPacket
Source§fn from(packet: EntityPositionSyncPacket) -> Self
fn from(packet: EntityPositionSyncPacket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EntityMovementSyncPacket
impl RefUnwindSafe for EntityMovementSyncPacket
impl Send for EntityMovementSyncPacket
impl Sync for EntityMovementSyncPacket
impl Unpin for EntityMovementSyncPacket
impl UnsafeUnpin for EntityMovementSyncPacket
impl UnwindSafe for EntityMovementSyncPacket
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,
§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<>>