#[non_exhaustive]pub struct TeleportEvent {
pub teleport: Teleport,
pub sent_before: Pose,
pub pose_before: Pose,
pub after: Pose,
}Expand description
A server teleport / correction (position) with the poses around it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.teleport: TeleportThe packet’s values as received: absolute or relative per
crate::common::teleport_flags in flags.
sent_before: PoseWhat the server had from us just before (TickContext::sent before the overwrite):
compare with TeleportEvent::after to see what the server moved / turned us by.
pose_before: PoseThe client pose just before (it may be ahead of sent_before within a tick).
after: PoseThe pose after applying it (relative fields resolved).
Trait Implementations§
Source§impl Clone for TeleportEvent
impl Clone for TeleportEvent
impl Copy for TeleportEvent
Source§impl Debug for TeleportEvent
impl Debug for TeleportEvent
Source§impl PartialEq for TeleportEvent
impl PartialEq for TeleportEvent
impl StructuralPartialEq for TeleportEvent
Auto Trait Implementations§
impl Freeze for TeleportEvent
impl RefUnwindSafe for TeleportEvent
impl Send for TeleportEvent
impl Sync for TeleportEvent
impl Unpin for TeleportEvent
impl UnsafeUnpin for TeleportEvent
impl UnwindSafe for TeleportEvent
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